|
|||
|
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 |
|
|||
|
Yes you can. You will need the module which should be part of ZF 1.1.1. It's called Zend_Layout. Here is a link to an article: The basics of Zend_Layout (ahem, Xend_Layout)
|
|
|||
|
Hi D@ Mick.
I had the same problem when using ZF. But I managed to get a solution: plugins. All you have to do is register some plugins. For example: a plugin that will show the header and footer; a plugin to show up a list of categories on the left; a plugin to show a dinamic calendar on the right etc. The plugins offer enough flexibility for this. If you have any further questions do not hesitate. Adrian |
![]() |
| Thread Tools | |
| Display Modes | |
|
|