applications/dashboard/controllers/class.setupcontroller.php
public function Index() {
      $this->AddJsFile('setup.js');
      
      $this->ApplicationFolder = 'dashboard';
      $this->MasterView = 'setup';
      // Fatal error if Garden has already been installed.
      $Installed = C('Garden.Installed');
      if ($Installed) {
         $this->View = "AlreadyInstalled";
         $this->Render();
         return;
      }
      
      if (!$this->_CheckPrerequisites()) {
         $this->View = 'prerequisites';
      } else {
         $this->View = 'configure';
         
         // Make sure the user has copied the htaccess file over.
         if (!file_exists(PATH_ROOT.'/.htaccess') && !$this->Form->GetFormValue('SkipHtaccess')) {
            $this->SetData('NoHtaccess', TRUE);
            $this->Form->AddError(T('You are missing Vanilla\'s .htaccess file.', 'You are missing Vanilla\'s <b>.htaccess</b> file. Sometimes this file isn\'t copied if you are using ftp to upload your files because this file is hidden. Make sure you\'ve copied the <b>.htaccess</b> file before continuing.'));
         }
         
         $ApplicationManager = new Gdn_ApplicationManager();
         
         // Need to go through all of the setups for each application. Garden,
         if ($this->Configure() && $this->Form->IsPostBack()) {
            // Get list of applications to enable during install
            // Override by creating conf/config.php and adding this setting before install begins
            $AppNames = C('Garden.Install.Applications', array('Conversations', 'Vanilla'));
            try {
               // Step through the available applications, enabling each of them.
               foreach ($AppNames as $AppName) {
                  $Validation = new Gdn_Validation();
                  $ApplicationManager->RegisterPermissions($AppName, $Validation);
                  $ApplicationManager->EnableApplication($AppName, $Validation);
               }
            } catch (Exception $ex) {
               $this->Form->AddError($ex);
            }
            if ($this->Form->ErrorCount() == 0) {
               // Save a variable so that the application knows it has been installed.
               // Now that the application is installed, select a more user friendly error page.
               $Config = array('Garden.Installed' => TRUE);
               SaveToConfig($Config);
               
               // Go to the dashboard
               Redirect('/settings/gettingstarted');
            }
         }
      }
      $this->Render();
   }
public function Index() {
      $this->AddJsFile('setup.js');
      
      $this->ApplicationFolder = 'dashboard';
      $this->MasterView = 'setup';
      // Fatal error if Garden has already been installed.
      $Installed = C('Garden.Installed');
      if ($Installed) {
         $this->View = "AlreadyInstalled";
         $this->Render();
         return;
      }
      
      if (!$this->_CheckPrerequisites()) {
         $this->View = 'prerequisites';
      } else {
         $this->View = 'configure';
         
         // Make sure the user has copied the htaccess file over.
         if (!file_exists(PATH_ROOT.'/.htaccess') && !$this->Form->GetFormValue('SkipHtaccess')) {
            $this->SetData('NoHtaccess', TRUE);
            $this->Form->AddError(T('You are missing Vanilla\'s .htaccess file.', 'You are missing Vanilla\'s <b>.htaccess</b> file. Sometimes this file isn\'t copied if you are using ftp to upload your files because this file is hidden. Make sure you\'ve copied the <b>.htaccess</b> file before continuing.'));
         }
         
         $ApplicationManager = new Gdn_ApplicationManager();
         
         // Need to go through all of the setups for each application. Garden,
         if ($this->Configure() && $this->Form->IsPostBack()) {
            // Get list of applications to enable during install
            // Override by creating conf/config.php and adding this setting before install begins
            $AppNames = C('Garden.Install.Applications', array('Conversations', 'Vanilla'));
            try {
               // Step through the available applications, enabling each of them.
               foreach ($AppNames as $AppName) {
                  $Validation = new Gdn_Validation();
                  $ApplicationManager->RegisterPermissions($AppName, $Validation);
                  $ApplicationManager->EnableApplication($AppName, $Validation);
               }
            } catch (Exception $ex) {
               $this->Form->AddError($ex);
            }
            if ($this->Form->ErrorCount() == 0) {
               // Save a variable so that the application knows it has been installed.
               // Now that the application is installed, select a more user friendly error page.
               $Config = array('Garden.Installed' => TRUE);
               SaveToConfig($Config);
               
               // Go to the dashboard
               Redirect('/settings/gettingstarted');
            }
         }
      }
      $this->Render();
   }
public function Index ( ) { $ this -> AddJsFile ( 'setup.js' ) ; $ this -> ApplicationFolder = 'dashboard' ; $ this -> MasterView = 'setup' ; // Fatal error if Garden has already been installed. $ Installed = C ( 'Garden.Installed' ) ; if ( $ Installed ) { $ this -> View = "AlreadyInstalled" ; $ this -> Render ( ) ; return ; } if ( ! $ this -> _CheckPrerequisites ( ) ) { $ this -> View = 'prerequisites' ; } else { $ this -> View = 'configure' ; // Make sure the user has copied the htaccess file over. if ( ! file_exists ( PATH_ROOT . '/.htaccess' ) && ! $ this -> Form -> GetFormValue ( 'SkipHtaccess' ) ) { $ this -> SetData ( 'NoHtaccess' , TRUE ) ; $ this -> Form -> AddError ( T ( 'You are missing Vanilla\'s .htaccess file.' , 'You are missing Vanilla\'s <b>.htaccess</b> file. Sometimes this file isn\'t copied if you are using ftp to upload your files because this file is hidden. Make sure you\'ve copied the <b>.htaccess</b> file before continuing.' ) ) ; } $ ApplicationManager = new Gdn_ApplicationManager ( ) ; // Need to go through all of the setups for each application. Garden, if ( $ this -> Configure ( ) && $ this -> Form -> IsPostBack ( ) ) { // Get list of applications to enable during install // Override by creating conf/config.php and adding this setting before install begins $ AppNames = C ( 'Garden.Install.Applications' , array ( 'Conversations' , 'Vanilla' ) ) ; try { // Step through the available applications, enabling each of them. foreach ( $ AppNames as $ AppName ) { $ Validation = new Gdn_Validation ( ) ; $ ApplicationManager -> RegisterPermissions ( $ AppName , $ Validation ) ; $ ApplicationManager -> EnableApplication ( $ AppName , $ Validation ) ; } } catch ( Exception $ ex ) { $ this -> Form -> AddError ( $ ex ) ; } if ( $ this -> Form -> ErrorCount ( ) == 0 ) { // Save a variable so that the application knows it has been installed. // Now that the application is installed, select a more user friendly error page. $ Config = array ( 'Garden.Installed' => TRUE ) ; SaveToConfig ( $ Config ) ; // Go to the dashboard Redirect ( '/settings/gettingstarted' ) ; } } } $ this -> Render ( ) ; }
The summary of all settings available.

The menu items displayed here are collected from each application's
application controller and all plugin's definitions.

@since 2.0.0
@access public
The summary of all settings available .