Esempio n. 1
0
 public function action_start()
 {
     parent::action_start();
     if ($this->request->post('action') === 'registration') {
         $this->startRegistr();
     }
     $this->getMainView()->body = $this->getRegView();
     $this->response->body($this->getMainView());
 }
Esempio n. 2
0
 public function action_start()
 {
     parent::action_start();
     if ($this->request->post('action') === 'authorization') {
         $this->setAuthorization($this->request->post('nick'), $this->request->post('password'));
     }
     $this->getMainView()->body = $this->getAuthView();
     $this->response->body($this->getMainView());
 }