public function __construct($tpl) { parent::__construct(); $this->registerCompilerHandler("snippet", array($this, 'snippet')); $this->tpl = $tpl; }