2010年2月21日星期日

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

In fact, instead of removing "resources.view[] =", since some view
configurations may be needed sometimes I guess, I override _bootstrap() in
my bootstrap, to be able to set my own view after the ressources are loaded:

------------------------

protected function _bootstrap($resource = null)
{
parent::_bootstrap($resource);

$viewRenderer =
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$view = new My_View();
$viewRenderer->setView($view);
}

------------------------

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

没有评论: