[MANUAL] English:
[zend.git] / documentation / manual / en / module_specs / Zend_Application-AvailableResources-View.xml
blob0e541f7b36945b2a584dbe27a584b55e7123b5fc
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>
6     <para>
7         <classname>Zend_Application_Resource_View</classname> can be used to configure
8         a <classname>Zend_View</classname> instance. Configuration options are per <link
9             linkend="zend.view.introduction.options">the <classname>Zend_View</classname>
10             options</link>.
11     </para>
13     <para>
14         Once done configuring the view instance, it creates an instance of
15         <classname>Zend_Controller_Action_Helper_ViewRenderer</classname> and registers
16         the ViewRenderer with <classname>Zend_Controller_Action_HelperBroker</classname>
17         -- from which you may retrieve it later.
18     </para>
20     <example id="zend.application.available-resources.view.configExample">
21         <title>Sample View resource configuration</title>
23         <para>
24             Below is a sample <acronym>INI</acronym> snippet showing how to configure the view
25             resource.
26         </para>
28         <programlisting language="ini"><![CDATA[
29 resources.view.encoding = "UTF-8"
30 resources.view.basePath = APPLICATION_PATH "/views/scripts"
31 ]]></programlisting>
32     </example>
33 </sect2>