Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Yaf_Action_Abstract::getControllerNameYaf_View_Interface::assign>
^YafLast updated: Mon, 26 Oct 2026

The Yaf_View_Interface class

(Yaf >=1.0.0)

Introduction

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

Class synopsis

class Yaf_View_Interface {
/* Methods */
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
}

Table of Contents


<Yaf_Action_Abstract::getControllerNameYaf_View_Interface::assign>
^YafLast updated: Mon, 26 Oct 2026