|
|
@@ -1,6 +1,6 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!-- Reviewed: no -->
|
|
|
-<!-- EN-Revision: 22593 -->
|
|
|
+<!-- EN-Revision: 22970 -->
|
|
|
<sect2 id="zend.application.available-resources.view">
|
|
|
<title>Zend_Application_Resource_View</title>
|
|
|
|
|
|
@@ -30,4 +30,61 @@ 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.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>
|
|
|
+
|
|
|
+ <sect3 id="zend.application.available-resources.view.contentType">
|
|
|
+ <title>Defining content type and encoding to use</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ If you want to obtain more information about values, see <link
|
|
|
+ linkend="zend.view.helpers.initial.headmeta">HeadMeta Helper
|
|
|
+ </link>.
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <example id="zend.application.available-resources.view.contentTypeExample">
|
|
|
+ <title>Sample content type and encoding configuration</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ The following snippet shows how to set a meta Content-Type.
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <programlisting language="ini"><![CDATA[
|
|
|
+resources.view.contentType = "text/html; charset=UTF-8"
|
|
|
+]]></programlisting>
|
|
|
+ </example>
|
|
|
+
|
|
|
+ <example id="zend.application.available-resources.view.charsetExample">
|
|
|
+ <title>Sample encoding configuration for a HTML5 document</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ The following snippet shows how to set a meta charset in HTML5-style.
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <programlisting language="ini"><![CDATA[
|
|
|
+resources.view.doctype = "HTML5"
|
|
|
+resources.view.charset = "UTF-8"
|
|
|
+]]></programlisting>
|
|
|
+ </example>
|
|
|
+ </sect3>
|
|
|
</sect2>
|