2009年3月28日星期六

Re: [fw-mvc] Layout before dispatch

Take a look at this solution[1] I've come up with at some point.
It uses a front controller plugin, more precisely the dispatchLoopStartup()
method of Zend_Controller_Plugin_Abstract. Search for initView()

Hope it helps

[1] http://gist.github.com/87148

>> Hi,
>>
>> I need to set path to layout folder depending on module name.
>> And as I understand it should be done before front controller dispatch.
>> But the name of the module by that time is unknown.
>> Please, suggest some solution.
>>
>> K.L.
>>
--
Ionut G. Stan
I'm under construction | http://igstan.blogspot.com/

没有评论: