function getTemplate($args, $template, $smarty) { $smarty->assign($args); return $smarty->fetch($this->getTemplatePath(true) . $template); }