List Info

Thread: how to manage html header when using different views




how to manage html header when using different views
user name
2007-08-28 13:17:00
hi, i have a basic question related to Zend_View and the
->render()
method. I have one .pthtml and one .css file for the menu
which should
allways be present so i load it inside every view that needs
it.

My question now is how is the html header managed ? get they
merged when
i call ->render multiple times ?
Because of the <title> and the <link> and
<script> header tags..

best regards,
Truppe Steven

Re: how to manage html header when using different views
user name
2007-08-28 13:46:44
hello Truppe Steven,

What you're describing sounds like you're trying to wrap
your content
in a "layout." There is no easy way to do this
with Zend_View at the
moment (though extensions to the component are being
proposed). The
best method I can think of is the two-step method as
described here:

http://blog.astrumfutura.com/archives/288-Complex-Views
-with-the-Zend-Framework-Part-5-The-Two-Step-View-Pattern.ht
ml

Best of luck,
Mitchell hashimoto

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )