In my modules directory I have the folowing directory structure:
modules
default
controllers
viewsscripts
admin
controllers
views scripts
In my bootstrap.php I have the following line to configurate the module directory:
PHP Code:
$frontController->addModuleDirectory($appConfig->modules) // $appConfig->modules is equal to "./app/modules", this is the modules directory shown above
When I try to open a control under default there are no errors, but when I try to open for example users control under admin I getting the following error:
Quote:
|
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (admin)' in /storage/wwwroot/Zend/Controller/Dispatcher/Standard.php:193 Stack trace: #0 /storage/wwwroot/Zend/Controller/Front.php(911): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /storage/wwwroot/bootstrap.php(208): Zend_Controller_Front->dispatch() #2 /storage/wwwroot/index.php(20): include_once('/storage/wwwroo...') #3 {main} thrown in /storage/wwwroot/Zend/Controller/Dispatcher/Standard.php on line 193
|
I ask the controller to open by typing the following address:
http://192.168.4.3/admin/users/view
And when I ask all of the directory's that are listed in the front controller I'm getting the following directory's
Quote:
["default"] => string(33) "./app/modules/default/controllers"
["users"] => string(31) "./app/modules/users/controllers"
|
My question ofcores is what do I do wrong and has anybody have solution for this?
thnx