class SignUpController extends ControllerBase
{
public function indexAction()
{
$this->tag->prependTitle('Регистрация');
$session = new SessionLib();
$form = new SessionForm();
if ($this->request->isPost()) {
if ($form->isValid($this->request->getPost())) {
if($session->CreateUser())
{
if($session->CreateRememberUser())
return $this->response->redirect('/');
}
else
{
$session->ErorrMessages();
}
}
}
$this->view->form = $form;
}
}