It's getting worse with the time.
The day before yesterday I could not forward to module but I could forward
to action/controller
But sicne yesterday I cannot even forward to a controller, only action !!
Instead of telling me that it doesn't find the action in the current
cotnroller,
the error message should tell me why it doesn't take the correct controller
I specify in the params.
I have no inforamtion about this at all.
Also I checked my applciation structure, everything seems ok.
Please can you tell me how I can even debug this ??
Any tips ??
Thank you !
debussy007 wrote:
>
> 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#a12936321
Sent from the Zend Framework mailing list archive at Nabble.com.