Exemple #1
0
 public function action_news()
 {
     if (Users::login()) {
         $user = Users::factory();
         View::factory()->bind('email', $user->_email)->bind('name', $user->_fio)->response('news');
     } else {
         $this->header('Location', URL);
     }
 }
Exemple #2
0
 public function action_index()
 {
     if (Users::login()) {
         $user = Users::factory();
         View::factory()->bind('email', $user->_email)->bind('name', $user->_fio)->response('personal_info');
     } else {
         throw new HTTP_Exception(401);
     }
 }
Exemple #3
0
 public function show()
 {
     $code = STD::arr($this->code_error, $this->message, $this->code_error['500']);
     Controller::factory()->header($_SERVER['SERVER_PROTOCOL'], $code);
     View::factory()->bind('error', $code)->response('http_error/default');
 }