Documentation

Assign


Assign

Assign variables to the template.

Example:

$tpl = new View;
$tpl->assign( 'msg', 'Hello World!' );