(Yaf >=1.0.0)
はじめに
Yaf では、組み込みのビューエンジン Yaf_View_Simple のかわりにカスタムビューを自作できるようになっています。 その実例は、 Yaf_Dispatcher::setView() を参照ください。
クラス概要
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
}
目次
- Yaf_View_Interface::assign — 値をビューエンジンに代入する
- Yaf_View_Interface::display — テンプレートをレンダリングして出力する
- Yaf_View_Interface::getScriptPath — The getScriptPath purpose
- Yaf_View_Interface::render — テンプレートをレンダリングする
- Yaf_View_Interface::setScriptPath — The setScriptPath purpose
/* メソッド */