Пример #1
0
 private function _check_template()
 {
     if (Routes::is_ajax()) {
         $this->template = 'admin_ajax';
     } else {
         $this->_build_dashboard();
     }
 }
Пример #2
0
 public function admin_forgottenpassword()
 {
     $this->title = 'Recuperado de contraseña';
     if ($this->Session->is_logged()) {
         $this->go_to($this->afterLoginAction);
     }
     if (Routes::is_ajax()) {
         $this->_procesa_envio_de_correo_para_recuperacion();
     } else {
         $this->template = 'adminLogin';
     }
 }
Пример #3
0
 private function _check_template()
 {
     if (Routes::is_ajax()) {
         $this->template = 'ajax';
     }
 }