ZF Manual for Zend_View
a> bakın ve bootstrap bu yerleştirin:
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initView()
{
$view = new Zend_View();
$view->setScriptPath('/some/new/path'); // overwrite any paths
$view->addScriptPath('/some/other/path'); // adds additional paths
$view->setEncoding('UTF-8');
$view->doctype('XHTML1_STRICT');
$view->headMeta()->appendHttpEquiv(
'Content-Type', 'text/html;charset=utf-8'
);
$viewRenderer =
Zend_Controller_Action_HelperBroker::getStaticHelper(
'ViewRenderer'
);
$viewRenderer->setView($view);
return $view;
}
}
ya da configure your Ini for use with Zend_Application_Resource_View
a>
resources.view.encoding = "UTF-8"
resources.view.basePath = APPLICATION_PATH "/views/scripts"
...
Seçilen BasePath bir dizin yapısı varsayar:
base/path/
helpers/
filters/
scripts/
Ayrıca bakınız bu tutorial by Padraic Brady.