Introduction
PHP Manual
PHP Manual»Yaf»Yaf_View_Interface

La classe Yaf_View_Interface

(Yaf >=1.0.0)

Yaf offre aux développeurs la possibilité d'utiliser un moteur de vue personnalisé au lieu du moteur interne qu'est Yaf_View_Simple. Un exemple explique comment procéder, se reporter à Yaf_Dispatcher::setView().

class Yaf_View_Interface {
/* Méthodes */
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
}

Sommaire

To Top