Php/docs/class.yaf-view-interface
From Get docs
(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
Yaf_View_Interface {
abstract public assign
( string $name
[, string $value
] ) : bool
abstract public display
( string $tpl
[, array $tpl_vars
] ) : bool
abstract public getScriptPath ( ) : void
abstract public render
( string $tpl
[, array $tpl_vars
] ) : string
abstract public setScriptPath
( string $template_dir
) : void
}
Table of Contents
- Yaf_View_Interface::assign — Assign value to View engine
- Yaf_View_Interface::display — Render and output a template
- Yaf_View_Interface::getScriptPath — The getScriptPath purpose
- Yaf_View_Interface::render — Render a template
- Yaf_View_Interface::setScriptPath — The setScriptPath purpose
/* Methods */