Yaf_View_Simple::eval

(Yaf >=2.2.0) Render template public string Yaf_View_Simple::eval ( string $tpl_content [, array $tpl_vars ] ) Render a string tempalte and return the result. Parameters: tpl_content string template tpl_vars string template Returns:

Yaf_View_Simple::display

(Yaf >=1.0.0) Render and display public bool Yaf_View_Simple::display ( string $tpl [, array $tpl_vars ] ) Render a template and display the result instantly. Parameters: tpl Render a template and display the result instantly. tpl_vars Render a template and display the result instantly. Returns:

Yaf_View_Simple::__construct

(Yaf >=1.0.0) Constructor of Yaf_View_Simple final public Yaf_View_Simple::__construct ( string $template_dir [, array $options ] ) Parameters: template_dir The base directory of the templates, by default, it is APPLICATOIN . "/views" for Yaf. options Options for the engine, as of Yaf 2.1.13, you can use short tag "<?=$var?>

Yaf_View_Simple::clear

(Yaf >=2.2.0) Clear Assigned values public bool Yaf_View_Simple::clear ([ string $name ] ) clear assigned variable Parameters: name assigned variable name if empty, will clear all assigned variables Returns: Examples: Yaf_View_Simple::clear() example <?php class In

Yaf_View_Simple::assignRef

(Yaf >=1.0.0) The assignRef purpose public bool Yaf_View_Simple::assignRef ( string $name, mixed &$value ) unlike Yaf_View_Simple::assign(), this method assign a ref value to engine. Parameters: name A string name which will be used to access the value in the tempalte. value mixed value Returns:

Yaf_View_Simple::assign

(Yaf >=1.0.0) Assign values public bool Yaf_View_Simple::assign ( string $name [, mixed $value ] ) assign variable to view engine Parameters: name A string or an array. if is string, then the next argument $value is required. value mixed value Returns: Exampl

Yaf_View_Interface::setScriptPath

(Yaf >=1.0.0) The setScriptPath purpose abstract public void Yaf_View_Interface::setScriptPath ( string $template_dir ) Set the templates base directory, this is usually called by Yaf_Dispatcher Parameters: template_dir A absolute path to the template directory, by default, Yaf_Dispatcher use application.directory . "/views" as this paramter. Retur

Yaf_View_Interface::render

(Yaf >=1.0.0) Render a template abstract public string Yaf_View_Interface::render ( string $tpl [, array $tpl_vars ] ) Render a template and return the result. Parameters: tpl Render a template and return the result. tpl_vars Render a template and return the result. Returns:

Yaf_View_Interface::getScriptPath

(Yaf >=1.0.0) The getScriptPath purpose abstract public void Yaf_View_Interface::getScriptPath ( void ) Returns: This function is currently not documented; only its argument list is available.

Yaf_View_Interface::display

(Yaf >=1.0.0) Render and output a template abstract public bool Yaf_View_Interface::display ( string $tpl [, array $tpl_vars ] ) Render a template and output the result immediatly. Parameters: tpl Render a template and output the result immediatly. tpl_vars Render a template and output the result immediatly. Retur