template system for zend
I'm not sure how to go about this. I searched on google and SO but didn't find anything useful. (And I don't wat to use something like smarty)

What I want is a template system similar to wordpress. And have it split up in certain files, for example header.phtml, body.phtml, sidebar.phtml and footer.phtml

How do I call these all together? One problem is that each one of these 'views' could have it's own functions to run (header needs to retrieve the navigation from the DB, body needs all the articles from the DB, sidebar might need the categories from the DB)

Some methods could even be in different controllers, for example, if I could have a separate login form, but what if I want to show the login form on the side bar as well? My login method is located in my User controller!

How do I reach all these methods/actions and place them in one website?!


Any suggestions/article links how to go about this? I'd like my template system to be easy to edit in case I'd want to change the look of the website.
template system for zend
===

I'm not sure how to go about this. I searched on google and SO but didn't find anything useful. (And I don't wat to use something like smarty)

What I want is a template system similar to wordpress. And have it split up in certain files, for example header.phtml, body.phtml, sidebar.phtml and footer.phtml

How do I call these all together? One problem is that each one of these 'views' could have it's own functions to run (header needs to retrieve the navigation from the DB, body needs all the articles from the DB, sidebar might need the categories from the DB)

Some methods could even be in different controllers, for example, if I could have a separate login form, but what if I want to show the login form on the side bar as well? My login method is located in my User controller!

How do I reach all these methods/actions and place them in one website?!


Any suggestions/article links how to go about this? I'd like my template system to be easy to edit in case I'd want to change the look of the website.