public function Setup() {
      $Database = Gdn::Database();
      $Config = Gdn::Factory(Gdn::AliasConfig);
      $Drop = Gdn::Config('Vanilla.Version') === FALSE ? TRUE : FALSE;
      $Explicit = TRUE;
      
      // Call structure.php to update database
      $Validation = new Gdn_Validation(); // Needed by structure.php to validate permission names
      include(PATH_APPLICATIONS . DS . 'vanilla' . DS . 'settings' . DS . 'structure.php');

      SaveToConfig('Routes.DefaultController', 'discussions');
   }
public function Setup() {
      $Database = Gdn::Database();
      $Config = Gdn::Factory(Gdn::AliasConfig);
      $Drop = Gdn::Config('Vanilla.Version') === FALSE ? TRUE : FALSE;
      $Explicit = TRUE;
      
      // Call structure.php to update database
      $Validation = new Gdn_Validation(); // Needed by structure.php to validate permission names
      include(PATH_APPLICATIONS . DS . 'vanilla' . DS . 'settings' . DS . 'structure.php');

      SaveToConfig('Routes.DefaultController', 'discussions');
   }
public function Setup ( ) { $ Database = Gdn :: Database ( ) ; $ Config = Gdn :: Factory ( Gdn :: AliasConfig ) ; $ Drop = Gdn :: Config ( 'Vanilla.Version' ) === FALSE ? TRUE : FALSE ; $ Explicit = TRUE ; // Call structure.php to update database $ Validation = new Gdn_Validation ( ) ; // Needed by structure.php to validate permission names include ( PATH_APPLICATIONS . DS . 'vanilla' . DS . 'settings' . DS . 'structure.php' ) ; SaveToConfig ( 'Routes.DefaultController' , 'discussions' ) ; }
Automatically executed when application is enabled.

@since 2.0.0
@package Vanilla
Automatically executed when application is enabled .