public function executeBlank() { if ($this->getApplication()->getRequest()->hasPostValues() == TRUE) { $this->createDatabaseConfigFile(); $configurationManager = new ConfigurationManager(); if ($configurationManager->checkConnection() == TRUE) { $this->updateRoutesFile($configurationManager->getHomePage()); $this->page->addVar('file_created', TRUE); } else { $this->page->addVar('file_created', FALSE); unlink("app/config/database.xml"); } } }