2010年2月21日星期日

[fw-mvc] Re: How to extend Zend_View?

That didn't help either... But I debuged the code and I found the problem:

In my application.ini, there was this line:

resources.view[] =

And this line made this method to be called (because of "ressources
loading"):

Zend_Application_Resource_View::init()

which creates an hardcoded Zend_View inside:

$view = $this->getView();

And this Zend_View is then set inside the also created
Zend_Controller_Action_Helper_ViewRenderer which is pushed in the
Zend_Controller_Action_HelperBroker. And this replaces my own
Zend_Controller_Action_Helper_ViewRenderer.

The problem is that the ressources loading is made after the call to my
_initApp() function inside the bootstrap.

So just by removeing that line in "application.ini", everything seams to run
smooth now.

Thanks for the help!


--
View this message in context: http://n4.nabble.com/How-to-extend-Zend-View-tp1563653p1563738.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: