Advertisement
Pooky

Untitled

May 14th, 2011
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1.     public function addAction()
  2.     {
  3.         $form = new Application_Form_User();
  4.         if ($this->getRequest()->isPost()) {
  5.             if ($form->isValid($this->_getAllParams())) {
  6.                 $users = new Application_Model_DbTable_Users();
  7.                 $form->removeElement('repassword');
  8.                 $users->insert($form->getValues());
  9.  
  10.                 $this->_helper->FlashMessenger(
  11.                         array('ok' => 'Uživatel byl úspěšně registrován.')
  12.                 );
  13.  
  14.                 $this->_helper->redirector('index', 'index');
  15.             }
  16.         }
  17.         $this->view->form = $form;
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement