Esempio n. 1
0
 public function get_index()
 {
     $db_is_ready = Config::get('settings::core.passes_db_settings');
     if (!(bool) $db_is_ready) {
         Session::flash('message_type', 'error');
         Session::flash('message', Lang::line('opensim::lang.Your opensim database needs to be configured!')->get(ADM_LANG));
     }
     $this->data['settings'] = Settings\Model\Setting::where_section('opensim_settings')->get();
     $this->data['section_bar_active'] = Lang::line('opensim::lang.Settings')->get(ADM_LANG);
     return $this->theme->render('opensim::backend.opensim.index', $this->data);
 }