public function display() { /* $template = $this->currentAction->getTemplateVars(); ob_start(); $res = include 'templates/' . $this->currentAction->getTemplate(); $html = ob_get_contents(); ob_end_clean(); if ( $res === false ) { throw new Exception( 'Template error.' ); } echo $html; */ $template = new ezcTemplate(); $templateVars = $this->currentAction->getTemplateVars(); $template->send->object = $templateVars; try { echo $template->process($this->currentAction->getTemplate()); } catch (Exeption $e ) { echo $e->getMessage(); } } ########################################################### { use $templateVars } {$templateVars->title} { include 'head.ezt' }

home template ezt

{include 'foot.ezt'} ############################# ERROR: "The use variable 'templateVars' is not set."