De error die ik terug krijg:
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in /home/allard/domains/.../public_html/library/Zend/Controller/Dispatcher/Standard.php:248 Stack trace: #0 /home/allard/domains
/.../public_html/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /home/allard/domains/.../public_html
/index.php(19): Zend_Controller_Front->dispatch() #2 {main} thrown in /home/allard/domains/.../public_html/library/Zend/Controller/Dispatcher/Standard.php on line 248
Mijn index.php:
<?php
//full error reporting
error_reporting(E_ALL);
set_include_path( '.' . PATH_SEPARATOR . './library/' .
PATH_SEPARATOR . get_include_path() );
//include zend loader
include_once('Zend/Loader.php');
//load the classes
Zend_Loader::loadClass('Zend_Controller_Front');
//configure the front controller
$controller = Zend_Controller_Front::getInstance();
$controller->setControllerDirectory('./application/controllers');
//run the conroller
$controller->dispatch();
//show te renderer
$controller->setParam('noViewRenderer' , true);
?>
Mijn IndexController.php:
[code]
<?php
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
echo "Dit is de indexAction.";
}
public function infoAction()
{
echo "Dit is de infoAction.";
}
}