name."_".$page[0].'.html')) { $this->template = $this->name."_".$page[0]; } parent::__construct($page); } public function setNavigation() { $uname = ""; if (isset($this->page[1])) $uname = $this->page[1]; $this->navigation []= array('title'=>_('Edit settings'), 'url'=>"user/settings/{$uname}", 'current'=>$this->is_current_page($this->page[0], "settings")); $this->navigation []= array('title'=>_('Change password'), 'url'=>"user/password/{$uname}", 'current'=>$this->is_current_page($this->page[0], "password")); } public function getUserByUserName() { $uname = ""; if (isset($this->page[1])) $uname = $this->page[1]; return new User($uname); } } ?>