Yaf_View_Simple::setScriptPath
(Since Yaf 1.0.0.13)
public boolean Yaf_View_Simple::setScriptPath( string $view_directory );
设置模板的基目录, 默认的Yaf_Dispatcher会设置此目录为APPLICATION_PATH . "/views".
例 11.60. Yaf_View_Simple::setScriptPath 的例子
<?php
class IndexController extends Yaf_Controller_Abstract {
public funciton indexAction() {
$this->getView()->setScriptPath("/tmp/views/");
}
}
?>