2011年3月6日星期日

[fw-mvc] Re: troubles with custom view-scripts location and noViewRender=true by default

The way I usually handle this:
- I register a Layout Plugin, extending Zend_Layout_Controller_Plugin_Layout
- I use the preDispatch hook to determine what module, controller, action I
am in
- I switch between layouts and views depending on the context

For me, that's by far the easiest method.
GJ


Xerkus wrote:
>
> May be this can be useful to you:
> http://stackoverflow.com/q/5210475/605093
>
> I need to test this idea in real application though.
>


--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/troubles-with-custom-view-scripts-location-and-noViewRender-true-by-default-tp3335661p3337702.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: