public string Yaf_View_Simple::getScriptPath(void );
获取当前的模板目录
参数,void,此方法不需要参数
返回值,成功返回目前的视图目录, 失败返回NULL
例如:
例如:
function sendMsg()
{
$msg = 'hello';
$this->getView()->display($this->getView()->getScriptPath().'/meg/msg.phtml', $msg);
}
将‘hello’输出到调用调用此函数的Action对应的视图模板中。