Php/docs/class.yaf-view-simple
来自菜鸟教程
(Yaf >=1.0.0)
简介
Yaf_View_Simple 这是Yaf内建的一个模板引擎,是个简单而快速的模板引擎,只支持PHP脚本
类摘要
Yaf_View_Simple implements Yaf_View_Interface {
protected
$_tpl_vars
protected
$_tpl_dir
/* 方法 */
public clear
([ string $name
] ) : bool
final public __construct
( string $tempalte_dir
[, array $options
] )
public display
( string $tpl
[, array $tpl_vars
] ) : bool
public eval
( string $tpl_content
[, array $tpl_vars
] ) : string
public __get
([ string $name
] ) : void
public getScriptPath ( ) : string
public __isset
( string $name
) : void
public render
( string $tpl
[, array $tpl_vars
] ) : string
public setScriptPath
( string $template_dir
) : bool
}
属性
_tpl_vars
_tpl_dir
Table of Contents
- Yaf_View_Simple::assign — 为视图引擎分配一个模板变量
- Yaf_View_Simple::assignRef — The assignRef purpose
- Yaf_View_Simple::clear — Clear Assigned values
- Yaf_View_Simple::__construct — Constructor of Yaf_View_Simple
- Yaf_View_Simple::display — 渲染一个视图模板, 并直接输出给请求端
- Yaf_View_Simple::eval — 渲染模板
- Yaf_View_Simple::__get — 获取视图引擎的一个模板变量值
- Yaf_View_Simple::getScriptPath — 获取模板目录
- Yaf_View_Simple::__isset — The __isset purpose
- Yaf_View_Simple::render — 渲染模板
- Yaf_View_Simple::__set — 为视图引擎分配一个模板变量
- Yaf_View_Simple::setScriptPath — 设置模板的目录
/* 属性 */