public function test($path) { $tmpl = new Template(); $tmpl->loadTmpl($path); $subTmpl = $tmpl->getSubTmpl('EVENT_VERSION1'); $subTmpl->setVar('TITLE', 'Das ist ein Test'); $list = $subTmpl->render(); $tmpl->setVar('EVENTLIST', $list); echo $tmpl->render(); }