/** * Domyślna akcja dla: http://raport * lub: http://raport/index/ */ public function indexAction() { $polls = new Ankiety(); $this->view->polls = $polls->fetchAll(); $this->view->body = $this->view->render('/raport/raportIndex.php'); $this->display(); }
/** * Domyślna akcja dla: http://ankieter * lub: http://ankieter/index/ */ public function indexAction() { $poll = new Ankiety(); $this->view->validationError = $this->_getParam('validationError'); $this->view->poll = $poll->fetchAll(); $this->view->body = $this->view->render('/ankieter/ankieterIndex.php'); $this->display(); }