Helping ordinary people create extraordinary websites!

Zend Framework Tutorial

By Lyndon Baptiste
2008-08-13

The View and Layout

Zend_Layout takes advantage of various extension points when used with the MVC components. Therefore when Zend_Layout::startMvc($options) was executed on line 42 of index.php a layout object was registered that could render the layout with content once dispatch was completed and furthermore an action helper was registered with the action controller we subclassed. The latter part allows us to change, or disable layouts from within the context of our controllers in the event we require something different for particular pages (naturally we would have other layout scripts).

The index.phtml page will contain the code we desire for a given page. In this case the homepage is merely a paragraph with some content.





Tutorial pages:
 9 Votes

You might also want to check these out:


Leave a Comment on "Zend Framework Tutorial"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS