Zend_Application-AvailableResources-View.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect2 id="zend.application.available-resources.view">
  4. <title>Zend_Application_Resource_View</title>
  5. <para>
  6. <classname>Zend_Application_Resource_View</classname> can be used to configure
  7. a <classname>Zend_View</classname> instance. Configuration options are per <link
  8. linkend="zend.view.introduction.options">the <classname>Zend_View</classname>
  9. options</link>.
  10. </para>
  11. <para>
  12. Once done configuring the view instance, it creates an instance of
  13. <classname>Zend_Controller_Action_Helper_ViewRenderer</classname> and registers
  14. the ViewRenderer with <classname>Zend_Controller_Action_HelperBroker</classname>
  15. -- from which you may retrieve it later.
  16. </para>
  17. <example id="zend.application.available-resources.view.configExample">
  18. <title>Sample View resource configuration</title>
  19. <para>
  20. Below is a sample <acronym>INI</acronym> snippet showing how to configure the view
  21. resource.
  22. </para>
  23. <programlisting language="ini"><![CDATA[
  24. resources.view.encoding = "UTF-8"
  25. resources.view.basePath = APPLICATION_PATH "/views/scripts"
  26. ]]></programlisting>
  27. </example>
  28. </sect2>