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()); }
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()); }