/** * 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(); // to find the template we need, we can use the TemplateService $ts = new TemplateService(); $template = $ts->AdminTemplate(ADMINLOGIN_TEMPLATE); // load the default locale $config =& Config::getConfig(); $locale =& Locales::getLocale($config->getValue("default_locale")); $this->setValue("locale", $locale); // 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 */ function render() { // set the view character set based on the default locale $config =& Config::getConfig(); $locale =& Locales::getLocale($config->getValue("default_locale")); $this->setCharset($locale->getCharset()); parent::render(); // to find the template we need, we can use the TemplateService $ts = new TemplateService(); $template = $ts->AdminTemplate("dashboard"); $this->setValue("locale", $locale); // assign all the values $template->assign($this->_params->getAsArray()); // and send the results print $template->fetch(); }