Yaf_View_Interface::setScriptPath

(Yaf >=1.0.0)

Yaf_View_Interface::setScriptPathThe setScriptPath purpose

說(shuō)明

abstract public Yaf_View_Interface::setScriptPath(string $template_dir): void

設(shè)置模板的基目錄,這通常通過(guò)Yaf_Dispatcher調(diào)用。

警告

本函數(shù)還未編寫(xiě)文檔,僅有參數(shù)列表。

參數(shù)

template_dir

模板目錄的絕對(duì)路徑,默認(rèn)的Yaf_Dispatcher會(huì)設(shè)置此目錄為application.directory . "/views".

返回值