Code: Select all
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in C:\xampp\files\library\Zend\Controller\Dispatcher\Standard.php:241 Stack trace: #0 C:\xampp\files\library\Zend\Controller\Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 C:\xampp\files\application\index.php(65): Zend_Controller_Front->dispatch() #2 C:\xampp\files\public\index.php(3): require_once('C:\xampp\files\...') #3 {main} thrown in C:\xampp\files\library\Zend\Controller\Dispatcher\Standard.php on line 241Code: Select all
class IndexController extends Zend_Controller_Action {
public function indexAction() {
$this->view->title = 'Random Form';
$form = new Zend_Form();
$form->addElement(new Zend_Form_Element_Text());
$this->view->form = $form;
}
}Code: Select all
<h1><? echo $this->title; ?></h1>
<? echo $this->form; ?>
It works just fine when I don't try to use any objects in the action. I even created a dummy class just to make sure I'm not using Zend_Form all wrong. What am I doing wrong here?