<?php Zend_Loader::loadClass('Zend_View'); class RejController extends Zend_Controller_Action { public function getForm() { return $form; } public function indexAction() { require_once APPLICATION_PATH . '/forms/Rej.php'; $this->view->assing('title','Rejestracja'); $this->view->form = $form ; } } ?>
a widok
<h1 align="center"> <?= $this->form ?> </h1>
a błąd to Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zend\library\Zend\Controller\Dispatcher\Standard.php:241 Stack trace: #0 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zend\library\Zend\Controller\Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zend\public\index.php(41): Zend_Controller_Front->dispatch() #2 {main} thrown in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\zend\library\Zend\Controller\Dispatcher\Standard.php on line 241