/** * Renders a legacy template. * * @param string $tplPath Path to template (i.e. "design:setup/info.tpl") * @param array $params Parameters to pass to template. * Consists of a hash with key as the variable name available in the template. * * @return string The legacy template result * * @deprecated since 5.1 */ public function renderTemplate($tplPath, array $params = array()) { return $this->legacyEngine->render($tplPath, $params); }
/** * Renders the template with the given context and returns it as string. * * @param array $context An array of parameters to pass to the template * * @return string The rendered template */ public function render(array $context) { return $this->legacyEngine->render($this->templateName, $context); }