page layout
Hi all,
I have been woundering about something. Is it possible in zend to work with some sort of fix layout? With that I mean that the website that I have in mind has the same header and footer.
For the rest, there will be a left or right sub navigation bar (which will be filled dynamicaly according to some settings).
But the thing I would like to know if I can create a view file for the header and footer and just like "include" the rest of the contect views in it?
For exaple (sorry to bring up another programming framework, don't flame me about it, I'm just an eager web developer learning new thing) in Ruby on Rails you can have a reusable layout (verry often also the header and the footer) and then just "yield" your other views in it.
I have seen some solutions by just including the header and footer in every view page, but I don't know about that. That just seems a bit "over the edge" when using MVC.
I'm certain of it that other web developers here have had the same issue like me, so if you guys would mind sharing your thoughts with me.
Thank you in advance
|