_bootstrap() method is used by a method bootstrap(), which is used for boostraping resources manually or for main boostrap. So it might be the case that it gets called once for you, but this is not true for all apps (saying this so you and others do not use it in this fashion)
To add custom pats to resources do this in config (can rename to My namespace if you want):
pluginpaths.App_Application_Resource = "App/Application/Resource"
And then this path will be used before Zend original one, so any resource you add will be used. Hope that helps
--
Juozas Kaziukėnas (juozas@juokaz.com)
Aš internete - JuoKaz (http://www.juokaz.com)
On Sun, Feb 21, 2010 at 8:35 PM, electrotype <electrotype@gmail.com> wrote:
Juozas,
If I'm correct _bootstrap() is called only once... It's the bootstrap's
"constructor"!
But I'm curious about your solution. Where do you use your
App_Application_Resource_View class? How do you tell ZF to use it instead of
the default one?
--
View this message in context: http://n4.nabble.com/How-to-extend-Zend-View-tp1563653p1563790.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论