IndexController 4


~/tmp/ZF/fnext/IndexController-4.php.html  1 <?php  2 class IndexController extends Zend_Controller_Action {  3     public function init(){  4        $this->form = new Form_RejestrForm();  5     }  6     function indexAction() {  7         if ($this->_request->isPost()) {  8             $formData = $this->_request->getPost();  9             if ($this->form->isValid($formData)){ 10                 return $this->_forward('next'); 11             } else { 12                 $this->form->populate($formData); 13             } 14         } 15         $this->view->form = $this->form; 16     } 17     function nextAction() { 18         $this->view->dane = $this->_request->getPost(); 19         $this->view->title = "Poprawne"; 20     } 21 }

Wyszukiwarka

Podobne podstrony:
IndexController
java awt image IndexColorModel
indexc052
indexcb67
IndexController
indexc856
IndexController

więcej podobnych podstron