Hi, I'm trying to work with the framework ( Version 1.5.3 or 1.5.3 ) and I keep getting this error message. I tried everything I could think of, tried the Quickstart-tutorial but to no avail.
Here is my layout:
/www/application/
bootstrap.php
controllers/
IndexController.php
views/
script/
index/
index.phtml
library/
/www/html/
index.php
.htaccess
index.php:
<?php
$bootstrap = true;
require_once '../application/bootstrap.php';
$frontController->dispatch();
bootstrap.php:
<?php
error_reporting(E_ALL );
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
set_include_path('../application/library' .PATH_SEPARATOR .get_include_path());
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
$frontController = Zend_Controller_Front::getInstance();
$frontController->setControllerDirectory(array('default'=>'../application/default/controllers',
'test'=>'../application/test/controllers'));
var_dump($frontController->getControllerDirectory());
$frontController->setParam('env','development');
$frontController->throwExceptions(true);
$frontController->setParam('useDefaultControllerAlways', true);
This is what I get:
Output of var_dump(($frontController->getControllerDirectory()); : array(0)
{ }
To me it seems, that the ControllerDirectory doesn't get set.
And then this error mesage:
Fatal error: Uncaught exception 'Zend_Controller_Exception' with message 'No
default module defined for this application'
in /www/application/library/Zend/Controller/Dispatcher/Standard.php:392 Stack
trace:
#0 /www/application/library/Zend/Controller/Dispatcher/Standard.php(211):
Zend_Controller_Dispatcher_Standard->getControllerClass(Object(Zend_Controller_Request_Http))
#1 /www/application/library/Zend/Controller/Dispatcher/Standard.php(245):
Zend_Controller_Dispatcher_Standard->isDispatchable(Object(Zend_Controller_Request_Http))
#2 /www/application/library/Zend/Controller/Front.php(914):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http)) #3 /www/html/index.php(5):
Zend_Controller_Front->dispatch() #4 {main} thrown
in /www/application/library/Zend/Controller/Dispatcher/Standard.php on line
392
Any help is appreciated.
--
Wolfgang Ebneter M.Sc., Coach, medienpäd. Berater
Medienzentrum Osnabrück
signature.asc
Description: This is a digitally signed message part.
