Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-23-2007, 01:41 AM
Junior Member
 
Join Date: Aug 2007
Posts: 3
Default I'm getting a error opening my modules

In my modules directory I have the folowing directory structure:

modules
default
controllers
views
scripts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-30-2007, 08:43 PM
Junior Member
 
Join Date: Oct 2007
Location: Augusta, GA
Posts: 9
Default

Try naming your controller class Admin_UsersController

You want to use your module name with an underscore, than your controller name. Let me know if this fixes your problem or not.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:22 AM.