name."_".$page[0].'.html')) { $this->template = $this->name."_".$page[0]; } else { $this->template = "page_not_found"; } parent::__construct($page); } public function setNavigation() { /* $id = ""; if (isset($this->page[1])) $id = $this->page[1]; $this->navigation []= array('title'=>_('View'), 'url'=>"project/view/{$id}", 'current'=>$this->is_current_page($this->page[0], "view")); */ } public function getProjectById() { if (isset($this->page[1])) $id = (int)$this->page[1]; if (isset($id) && $id) { return ProjectManager::getProjectById($id); } return false; } } ?>