Hi all,
For all my modules I use a bootstrap class and most times they are empty 
(there are no methods inside). If a module has a helper, I create a method 
_initHelpers() and do a addHelperPath() call for the helper and 
addScriptPath() for the partials the helpers may use.
For a normal module/controller/action request, Zend_View is not able to find 
the view scripts for the module anymore (apparently the "adding" of 
addScriptPath removes the default paths). Therefore, I also do a 
addScriptPath() for the normal view scripts (APP_PATH 
'/modules/module/views/scripts/').

This causes a lot of trouble. In e.g. the projects module (bootstrapped with 
_initHelpers()) suddenly the index.phtml of the news module (also bootstrapped 
with _initHelpers()) is found. Of course this raises a lot of errors.

How can I configure my view helpers and partials inside a module so I can call 
them from everywhere I want?

Thanks in advance,
Jurian

--
Jurian Sluiman
Soflomo.com

Reply via email to