/**
  * Finish Action
  */
 public function finishAction()
 {
     $filename = $this->_configDir . $this->_configFile;
     $config = $this->_store->config->production->resources;
     $config->frontController->defaultModule = 'index';
     $config->layout->layout = 'default/layout';
     $writer = new Core_Config_Writer_Yaml();
     $writer->setConfig($this->_store->config);
     if (is_writable($this->_configDir)) {
         $writer->write($filename);
         $this->_store->unsetAll();
         //TODO remove install module
         $this->_helper->flashMessenger("Installization complete <br /> " . $this->view->__('And remove module Install'));
         $this->_helper->redirector(false, false, false);
     } else {
         $this->view->filename = $filename;
         $this->view->config = $writer->render();
     }
 }
Example #2
0
 /**
  * Finish Action
  */
 public function finishAction()
 {
     $filename = $this->_configDir . $this->_configFile;
     $config = $this->_store->config->production->resources;
     $config->frontController->defaultModule = 'index';
     $config->layout->layout = 'default/layout';
     $writer = new Core_Config_Writer_Yaml();
     $writer->setConfig($this->_store->config);
     if (is_writable($this->_configDir)) {
         $writer->write($filename);
         $this->_store->unsetAll();
         //remove install module
         $pathToModules = APPLICATION_PATH . '/modules/';
         $module = 'install';
         $pathToModule = $pathToModules . $module;
         if (is_dir($pathToModules) && is_writable($pathToModules) && is_dir($pathToModule)) {
             rename($pathToModule, APPLICATION_PATH . '/modules/.' . $module);
             $this->_helper->flashMessenger($this->view->__('Remove module Install'));
         }
         $this->_helper->flashMessenger("Installation complete");
         $this->_helper->redirector(false, false, false);
     } else {
         $this->view->filename = $filename;
         $this->view->config = $writer->render();
     }
 }