/** * Set the active menu */ protected function setActiveMenu() { if ($this->getPrimary()->getId() != '0') { $this->template->appendFileById("menu_view_link.html", "li", "navBarUL", true); } else { $this->template->setAttribute("class", "active", "menuManage", "a[@href='manage']"); $this->template->appendFileById("menu_manage.html", "ul", "menuManage"); $this->template->setAttribute("class", "active", "menuManage", "ul/li/a[@href='person']"); } return parent::setActiveMenu(); }