/** * Compiles a template using the file located at $path * @param string $path * @return string */ public function loadTemplate($path) { $tpl = new Template(); $tpl->injectVariables($this->getVariables()); $tpl->setViewName($path); $tpl->setConfig("allow_debug", $this->getConfig("allow_debug")); $tpl->setConfig("layout", $this->getConfig("layout")); return $tpl->compile(); }