(Yaf >=1.0.0)
Yaf_Controller_Abstract::getViewpath — Get the view path
Returns the template directory used by the view engine bound to this controller.
Bu işlevin bağımsız değişkeni yoktur.
The view template directory as a string.
Örnek 1 Yaf_Controller_Abstract::getViewpath() example
<?php
class ProductController extends Yaf_Controller_Abstract
{
public function indexAction() {
// the template directory used by the view engine,
// e.g. "/var/www/html/application/views"
var_dump($this->getViewpath());
}
}
?>Yukarıdaki örnek şuna benzer bir çıktı üretir:
string(31) "/var/www/html/application/views"