/** * Testovaci akce */ public function testAction() { if (Zend_Registry::get('config')->mtgim->isTest == 1) { $contactForm = new Application_Model_Form_Contact2(array('mailerSettings' => Zend_Registry::get('config')->mtgim->toArray())); $contactForm->setAction('/index/test'); $showForm = TRUE; // todo tohle udelat doopravdy - isPost neexistuje if ($this->_request->isPost()) { // zpracuji formular $showForm = !$contactForm->process($_POST); } $this->view->pageId = 'page-test'; $this->view->showForm = $showForm; if ($showForm) { $this->view->contactForm = $contactForm; } } else { $this->getHelper('redirector')->goto('index', 'index'); } }