The Yaf_View_Interface class

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

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