Hello,
Whenever I try to forward to another module,
it keep trying to find the action/controller inside the current module.
It's like it doesn't consider the third parameter of _forward method, which
specifies the module.
e.g. with this code in the "default" module :
$this->_forward('index','auth','partners');
return;
I have the following error :
Uncaught exception 'Zend_View_Exception' with message 'script
'auth/index.phtml' not found in path
(.\application\modules\default\views\scripts\)'
As you see it tries to find the action/controller in default module, even if
I specified to find it in the "partners" module.
My application structure is the following :
- application
|-- modules
|--- admin
|--- controllers
|--- models
|--- views
|--- default
|--- controllers
|--- models
|--- views
|--- partners
|--- controllers
|--- models
|--- views
I have the following in my bootstrap :
error_reporting(E_ALL|E_STRICT);
date_default_timezone_set('Europe/Brussels');
ini_set('display_errors', true);
ini_set('include_path', ini_get('include_path')
. PATH_SEPARATOR . './library'
. PATH_SEPARATOR . './application/modules/default/models/'
. PATH_SEPARATOR . './application/modules/partners/models/'
. PATH_SEPARATOR . './application/helpers/');
[...]
$front = Zend_Controller_Front::getInstance();
$front->addModuleDirectory('./application/modules');
$front->setBaseUrl($config->baseUrl);
if($config->test)
$front->throwExceptions(true);
$front->dispatch();
Thank you for any help!
--
View this message in context:
http://www.nabble.com/Forward-to-another-module-doesn%27t-work-tf4526568s16154.html#a12915376
Sent from the Zend Framework mailing list archive at Nabble.com.