Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function addAction()
- {
- $form = new Application_Form_User();
- if ($this->getRequest()->isPost()) {
- if ($form->isValid($this->_getAllParams())) {
- $users = new Application_Model_DbTable_Users();
- $form->removeElement('repassword');
- $users->insert($form->getValues());
- $this->_helper->FlashMessenger(
- array('ok' => 'Uživatel byl úspěšně registrován.')
- );
- $this->_helper->redirector('index', 'index');
- }
- }
- $this->view->form = $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement