文字

The Yaf_View_Simple Class

(Yaf >=1.0.0)

简介

Yaf_View_Simple 这是Yaf内建的一个模板引擎,是个简单而快速的模板引擎,只支持PHP脚本

类摘要

Yaf_View_Simple implements Yaf_View_Interface {
protected $_tpl_vars ;
protected $_tpl_dir ;
public bool assign ( string $name [, mixed $value ] )
public bool assignRef ( string $name , mixed &$value )
public bool clear ([ string $name ] )
final public __construct ( string $tempalte_dir [, array $options ] )
public bool display ( string $tpl [, array $tpl_vars ] )
public string eval ( string $tpl_content [, array $tpl_vars ] )
public void __get ([ string $name ] )
public string getScriptPath ( void )
public void __isset ( string $name )
public string render ( string $tpl [, array $tpl_vars ] )
public void __set ( string $name , mixed $value )
public bool setScriptPath ( string $template_dir )
}

属性

_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 — 设置模板的目录
上一篇: 下一篇: