> Hi,
>
> I worked with Zend_Application last 3 weeks.
>
> I have now one problem with module bootstrap after switching to latest SVN
> version of ZF incubator.
>
> Even with a very very simple mopdule bootstrap as:
>
> <?php
> class Admin_Bootstrap extends Zend_Application_Module_Bootstrap
> {
> public function run()
> {
> $front = Zend_Controller_Front::getInstance();
> $this->front->dispatch();
> }
> }
>
> the application takes lot of time to load them is freezing. I tested over
> both Windows and Linux based environments.
>
> Before of that the Zend_Application worked fine for me.
>
> Has anyone a sample of module bootstrapping working with latest version from
> incubator ?
I have module bootstrapping working for a single module here:
http://code.google.com/p/zendframeworkstorefront/source/browse/#svn/branches/TRY-KP-Zapp
It is only using a single default module at the moment though, your
admin bootstrap I assume this is:
modules/admin/Bootstrap.php ?
If so I dont believe you need the run to dispatch here, you should
only have one dispatch call in the main bootstrap class, the module
specific bootstrap are for setting up module specific settings such as
resource autoloading.
>
>
>
> Also i got a second question. How can be specified the paths to view helpers
> ?
>
> resources.view.helperPrefix.my = "My_View_Helper_"
> resources.view.helperPath.my = "My/View/Helper"
Having a look at the view resource Zend_Application_Resource_View, new
Zend_View($this->getOptions());, so it you can only set what Zend_View
takes in its construct, not sure if this includes helper paths.
>
> This doesn't seems to work. I tried couple of versions, no luck.
>
> --
> Best regards,
> Cristian Bichis
> www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com
--
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------
没有评论:
发表评论