Op Saturday 06 June 2009 17:18:06 schreef Jurian Sluiman:
> 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

I'm sorry to kick this thread, but I've not been able to solve the problem 
yet. I think the problem begins at the point I add the scriptpath to the view 
scripts. This makes an index.phtml also findable by others.
I have done such because adding a view helper and view partials make the view 
scripts not findable anymore. Is this a bug? I couldn't find one at the issue 
tracker, so I think I should file something about this issue isn't it?

Regards, Jurian
--
Jurian Sluiman
Soflomo.com

Reply via email to