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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2008, 07:11 PM
Junior Member
 
Join Date: Apr 2008
Posts: 2
Default Modules Dir

Hi,

I've tried to setup a new app, but I'm having some problems when setting the modules and controllers.

Here is how I had the module structure

PHP Code:
Array ( [users] => ./app/code/users/users/controllers [groups] => ./app/code/users/groups/controllers [dashboard] => ./app/code/dashboard/dashboard/controllers [news] => ./app/code/site/news/controllers [products] => ./app/code/site/products/controllers [nav] => ./app/code/site/nav/controllers [dashsite] => ./app/code/site/dashsite/controllers [template] => ./app/code/site/template/controllers 
This works fine for the default module i define on my bootstrap

PHP Code:
$front->setDefaultModule 'users' );
$front->setDefaultControllerName 'user' );
$front->dispatch (); 
But when I use the $this->_forward function to another module like this

PHP Code:
$this->_forward('index','site','news'); 
I'm getting this error:
PHP Code:
Fatal errorUncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller class ("News_SiteController")' in /Library/WebServer/Documents/bvb/library/Zend/Controller/Dispatcher/Standard.php:353 Stack trace#0 /Library/WebServer/Documents/bvb/library/Zend/Controller/Dispatcher/Standard.php(263): Zend_Controller_Dispatcher_Standard->loadClass('SiteController') #1 /Library/WebServer/Documents/bvb/library/Zend/Controller/Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #2 /Library/WebServer/Documents/bvb/index.php(49): Zend_Controller_Front->dispatch() #3 {main} thrown in /Library/WebServer/Documents/bvb/library/Zend/Controller/Dispatcher/Standard.php on line 353 
The "funny" part is that if I define news as my default module everything works just fine.

Can someone help me on this please,

Regards,
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 07:53 AM.