The Yaf_View_Simple class

(Yaf >=1.0.0)

Introduction

Yaf_View_Simple is the built-in template engine in Yaf, it is a simple but fast template engine, and only support PHP script template.

Class synopsis

classYaf_View_SimpleimplementsYaf_View_Interface {
protected$_tpl_vars;
protected$_tpl_dir;
finalpublic__construct(string$template_dir, array$options = ?)
publicassign(string$name, mixed$value = ?): bool
publicassignRef(string$name, mixed&$value): bool
publicclear(string$name = ?): bool
publicdisplay(string$tpl, array$tpl_vars = ?): bool
publiceval(string$tpl_content, array$tpl_vars = ?): string
public__get(string$name = ?): void
public__isset(string$name): void
publicrender(string$tpl, array$tpl_vars = ?): string
public__set(string$name, mixed$value): void
publicsetScriptPath(string$template_dir): bool
}

Properties

_tpl_vars

_tpl_dir

Table of Contents

To Top