PHP 8.6.0 Beta 3 is available for testing

La classe Yaf_View_Interface

(Yaf >=1.0.0)

Introduction

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().

Synopsis de la classe

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

add a note

User Contributed Notes

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