Zend_Layout-Introduction.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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>
  17. <para>
  18. Automate selection and rendering of layouts when used with the
  19. Zend Framework <acronym>MVC</acronym> components.
  20. </para>
  21. </listitem>
  22. <listitem>
  23. <para>
  24. Provide separate scope for layout related variables and content.
  25. </para>
  26. </listitem>
  27. <listitem>
  28. <para>
  29. Allow configuration, including layout name, layout script
  30. resolution (inflection), and layout script path.
  31. </para>
  32. </listitem>
  33. <listitem>
  34. <para>
  35. Allow disabling layouts, changing layout scripts, and other
  36. states; allow these actions from within action controllers and
  37. view scripts.
  38. </para>
  39. </listitem>
  40. <listitem>
  41. <para>
  42. Follow same script resolution rules (inflection) as the <link
  43. linkend="zend.controller.actionhelpers.viewrenderer">ViewRenderer</link>,
  44. but allow them to also use different rules.
  45. </para>
  46. </listitem>
  47. <listitem>
  48. <para>
  49. Allow usage without Zend Framework <acronym>MVC</acronym> components.
  50. </para>
  51. </listitem>
  52. </itemizedlist>
  53. </sect1>
  54. <!--
  55. vim:se ts=4 sw=4 et:
  56. -->