/** * Set the active menu * @return boolean */ protected function setActiveMenu() { if ($this->getPrimary()->getId() != '0') { } else { $this->template->setAttribute("class", "active", "menu_trainingprovider", "a[@href='manage?action=provider']"); $this->template->appendFileById("menu_manage_provider.html", "ul", "menu_trainingprovider"); $this->template->setAttribute("class", "active", "menu_trainingprovider", "ul/li/a[@href='trainingprovider']"); } return parent::setActiveMenu(); }