PHP 8.6.0 Beta 3 is available for testing

The Yaf_View_Interface class

(Yaf >=1.0.0)

Introduzione

Yaf provides a ability for developers to use custom view engine instead of built-in engine which is Yaf_View_Simple. There is a example to explain how to do this, please see Yaf_Dispatcher::setView().

Sommario della classe

class Yaf_View_Interface {
/* Metodi */
abstract public function assign(mixed $name, mixed $value = NULL): bool
abstract public function display(string $tpl, array $tpl_vars = NULL): bool
abstract public function getScriptPath(): string
abstract public function render(string $tpl, array $tpl_vars = NULL): string
abstract public function setScriptPath(string $template_dir): Yaf_View_Interface
}

Indice dei contenuti

add a note

User Contributed Notes

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