function render() { parent::render(); $templateService = new TemplateService(); $template = $templateService->Template($this->_templateName, "admin/xml"); $template->assign($this->_params->getAsArray()); print $template->fetch(); }
/** * Renders the view. It simply gets all the parameters we've been adding to it * and puts them in the context of the template renderer so that they can be accessed * as normal parameters from within the template */ function render() { parent::render(); $template = $this->_templateService->AdminTemplate($this->_templateName, $this->_blogInfo); // assign all the values $template->assign($this->_params->getAsArray()); // and send the results print $template->fetch(); }
/** * Renders the view. It simply gets all the parameters we've been adding to it * and puts them in the context of the template renderer so that they can be accessed * as normal parameters from within the template * * @return Returns a rendered template */ function render() { parent::render(); // now, load the plugin's own template $template = $this->_templateService->PluginTemplate($this->_pluginId, $this->_templateName); // assign all the values $template->assign($this->_params->getAsArray()); // and return the results print $template->fetch(); }