Пример #1
0
 public function roAction()
 {
     $this->view->form = $form = new Application_Form_Registration('ro');
     if ($this->_request->isPost()) {
         $formData = $this->_request->getPost();
         if ($form->isValid($formData)) {
             Registration::saveRegistration($form->getValues(), 'ro');
             $this->_redirect('index/rothanks');
         } else {
             $form->populate($formData);
         }
     }
 }