| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- Reviewed: no -->
- <sect2 id="zend.application.available-resources.view">
- <title>Zend_Application_Resource_View</title>
- <para>
- <classname>Zend_Application_Resource_View</classname> can be used to configure
- a <classname>Zend_View</classname> instance. Configuration options are per <link
- linkend="zend.view.introduction.options">the <classname>Zend_View</classname>
- options</link>.
- </para>
- <para>
- Once done configuring the view instance, it creates an instance of
- <classname>Zend_Controller_Action_Helper_ViewRenderer</classname> and registers
- the ViewRenderer with <classname>Zend_Controller_Action_HelperBroker</classname>
- -- from which you may retrieve it later.
- </para>
- <example id="zend.application.available-resources.view.configExample">
- <title>Sample View resource configuration</title>
- <para>
- Below is a sample <acronym>INI</acronym> snippet showing how to configure the view
- resource.
- </para>
- <programlisting language="ini"><![CDATA[
- resources.view.encoding = "UTF-8"
- resources.view.basePath = APPLICATION_PATH "/views/"
- ]]></programlisting>
- </example>
- <sect3 id="zend.application.available-resources.view.doctype">
- <title>Defining doctype to use</title>
- <para>
- If you want to obtain more information about values, see <link
- linkend="zend.view.helpers.html#zend.view.helpers.initial.doctype">Doctype Helper
- </link>.
- </para>
-
- <example id="zend.application.available-resources.view.doctypeExample">
- <title>Sample doctype configuration</title>
- <para>
- The following snippet shows how to set a doctype.
- </para>
- <programlisting language="ini"><![CDATA[
- resources.view.doctype = "HTML5"
- ]]></programlisting>
- </example>
- </sect3>
- </sect2>
|