Looking at using a template system for a new project, it\'s only a small site and don\'t want to use the overhead and \'complexity\' of smarty. I don\'t really like template
simplest... just create class blocks like:
class MyBlock implements IHtmlRenderizable{
private $_vars = array();
public function addVar($name, $value) {
$this->_vars[$name] = $value; return $this;
}
public function toHtml(){
extract($this->_vars);
include('/the/template.phtml');
}
}
and use $this->whatever on the template. or use:
$block->addVar('myvar', 'myvalue')->toHtml();
and on the template you can access it with $myvar