Zend_Application_Resource_ViewZend_Application_Resource_ViewはZend_Viewの
インスタンスを設定するために使用できます。設定オプションは
Zend_Viewオプションに
従います。
一旦ビューのインスタンスを設定したら、
Zend_Controller_Action_Helper_ViewRendererのインスタンスを
作成して、Zend_Controller_Action_HelperBroker
(後ほどそこから取得できるでしょう)でViewRendererを登録します。
サンプルビューリソースの設定
下記はビューリソースを設定する方法を示す INI スニペットサンプルです。
Defining doctype to use
If you want to obtain more information about values, see Doctype Helper
.
Sample doctype configuration
The following snippet shows how to set a doctype.
Defining content type and encoding to use
If you want to obtain more information about values, see HeadMeta Helper
.
Sample content type and encoding configuration
The following snippet shows how to set a meta Content-Type.
Sample encoding configuration for a HTML5 document
The following snippet shows how to set a meta charset in HTML5-style.