(Yaf >=1.0.0)
Yaf_View_Simple::getScriptPath — Get the template directory
Gets the directory in which templates are looked up.
У цієї функції немає параметрів.
The template directory as a string, or null if it has not been set yet.
Приклад #1 Yaf_View_Simple::getScriptPath() example
<?php
class IndexController extends Yaf_Controller_Abstract
{
public function indexAction()
{
/* the directory in which templates are looked up,
* usually application.view.directory */
echo $this->getView()->getScriptPath();
}
}
?>Поданий вище приклад виведе щось схоже на:
/var/www/html/application/views