Zend_Layout-Introduction.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.layout.introduction">
  4. <title>Introduction</title>
  5. <para>
  6. <classname>Zend_Layout</classname> implements a classic Two Step View pattern,
  7. allowing developers to wrap application content within another view,
  8. usually representing the site template. Such templates are often termed
  9. <emphasis>layouts</emphasis> by other projects, and Zend Framework has
  10. adopted this term for consistency.
  11. </para>
  12. <para>
  13. The main goals of <classname>Zend_Layout</classname> are as follows:
  14. </para>
  15. <itemizedlist>
  16. <listitem><para>
  17. Automate selection and rendering of layouts when used with the
  18. Zend Framework <acronym>MVC</acronym> components.
  19. </para></listitem>
  20. <listitem><para>
  21. Provide separate scope for layout related variables and content.
  22. </para></listitem>
  23. <listitem><para>
  24. Allow configuration, including layout name, layout script
  25. resolution (inflection), and layout script path.
  26. </para></listitem>
  27. <listitem><para>
  28. Allow disabling layouts, changing layout scripts, and other
  29. states; allow these actions from within action controllers and
  30. view scripts.
  31. </para></listitem>
  32. <listitem><para>
  33. Follow same script resolution rules (inflection) as the <link
  34. linkend="zend.controller.actionhelpers.viewrenderer">ViewRenderer</link>,
  35. but allow them to also use different rules.
  36. </para></listitem>
  37. <listitem><para>
  38. Allow usage without Zend Framework <acronym>MVC</acronym> components.
  39. </para></listitem>
  40. </itemizedlist>
  41. </sect1>
  42. <!--
  43. vim:se ts=4 sw=4 et:
  44. -->