Yaf_View_Simple::getScriptPath
PHP Manual
PHP Manual»Yaf_View_Simple»Yaf_View_Simple::getScriptPath

Yaf_View_Simple::getScriptPath

(Yaf >=1.0.0)

Yaf_View_Simple::getScriptPath — Get the template directory

Descrizione

public function Yaf_View_Simple::getScriptPath(): string

Gets the directory in which templates are looked up.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

The template directory as a string, or null if it has not been set yet.

Esempi

Example #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();
    }
}
?>

Il precedente esempio visualizzerà qualcosa simile a:

/var/www/html/application/views

Vedere anche:

To Top