(Yaf >=1.0.0)
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().
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}
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.yaf-view-interface.php