Well,
I find why I didn't see in default modules the value.
I was trying to pass an object, an it throws an exception and I
didn't see it because it was a line in bottom of the page.
With a string, it works well.
Filipe
Filipe Carvalho wrote:
Hi,
I'm developing an application and I decide to split the
application in several modules to be easier to maintain. Using MVC
model, in bootstrap I've:
$front = Zend_Controller_Front::getInstance();
$front->addControllerDirectory('../application/module_default/controllers','default');
$front->addControllerDirectory('../application/module_foruns/controllers','foruns');
$front->addControllerDirectory('../application/module_noticias/controllers','noticias');
(note: in the end of email, is the full directory tree I'm using)
Where default module maintain the main functionalities and foruns
and noticias are satellite modules that also use main controllers in
default module.
In a concrete example, in noticias module I want to be able to get
data from model and display it. But I've a controller in default
module, that will export that data for a file.
I've tried to create zend_session_namespace and zend_registry (in
satellite modules) to transmit information to controller in default
modules and didn't have success.
I've been able to create a zend_session_namespace in bootstrap and
get values in noticias module.
It is some feature that do not allow pass data from one module to
another, to modules be secure?
There is anyway to send information between satellite modules and
default modules?
Thanks in advande.
Best Regards,
Filipe Carvalho