Getting Started with Zend_Layout. Zend_Layout: Conclusions

Translations of this material:

into Russian: 4.3 Начало работы с Zend_Layout. Zend_Layout: заключание. Translated in draft, editing and proof-reading required.
Submitted for translation by antdmi 19.02.2011


Zend_Layout is a very simple wrapper around Zend_View which provides you immediately with the benefits of a Two Step View, giving you the flexibility to create a site-wide design into which you may inject your application content.

If you're looking closely at the examples, however, you may come away with the idea that the functionality is relatively limited: how do you alter the page title, inject an optional script tag, or even create an optional sidebar? These questions are addressed with the concept of a "Composite View" -- and are the subject of the next chapter in the tutorial, which covers view "placeholders."