Пример #1
0
 public function backend()
 {
     $this->common();
     $this->response->fromArray($this->config->template_backend);
     $this->response->language = $this->i18n_model->getLanguage();
     $this->response->languages = $this->config->i18n['languages'];
     $this->response->modules = $this->config->modules;
     $routes = $this->config->router_backend_noauth;
     if (!empty($this->session->root)) {
         $routes = array_merge_recursive($routes, $this->config->router_backend_auth);
     }
     $this->router->setMap($routes);
     $this->dispatch();
     $this->response->process();
 }