Beispiel #1
0
 public function save_config()
 {
     $this->template->page_title = __('Saving Database Configuration File');
     $data = Session::instance()->get('database_data');
     if ($data !== NULL) {
         if (setup::create_database_config($data)) {
             url::redirect('install/complete');
         }
         $error = __('Unable to write database.php config file');
     }
     $this->template->content = View::factory('install/save_config');
     $this->template->content->error = isset($error) ? $error : '';
 }