I'm pretty new to Zend.. I'm just wondering how to model my site's layout/structure. My site will have an user profile section, admin section, and the generic the default view of the site.
For the admin and profile, I'll have custom elements in the headers and footers, otherwise I want to default to a generic header/footer.
I want the ability to have an entirely custom skin separate from the default view, how should I structure things?
So far I have have created a directory in application/
named layouts
. I have modified the application.ini file so it accounts for that:
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
So my default layout view now exists in application/layouts/scripts/layout.phtml
, I have the header and footer embedded in this layout.phtml file but I would like to strip them out and have them in separate files.
Could anyone assist me in coming up with the structure for this? So to re-iterate I want a custom default layout, custom admin layout, custom user profile layout, and for all 3 layouts I want customizable heading/footer "includes" but I'm not sure how this is done properly in Zend as I'm accustomed to include files.