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 error: Uncaught 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,