Yaf_View_Simple::getScriptPath

(Yaf >=1.0.0)

Yaf_View_Simple::getScriptPathObtiene el directorio de plantillas

Descripción

public function Yaf_View_Simple::getScriptPath(): string

Obtiene el directorio en el que se buscan las plantillas.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

El directorio de plantillas como cadena, o null si aún no ha sido definido.

Ejemplos

Ejemplo #1 Ejemplo de Yaf_View_Simple::getScriptPath()

<?php
class IndexController extends Yaf_Controller_Abstract
{
    public function indexAction()
    {
        /* el directorio en el que se buscan las plantillas,
                  * habitualmente application.view.directory */
        echo $this->getView()->getScriptPath();
    }
}
?>

Resultado del ejemplo anterior es similar a:

/var/www/html/application/views

Véase también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top