generateError(); $pageId = array_search($pageParam, $this->validCats); if ($pageId === false) $this->generateError(); $this->catg = $pageParam; } protected function generate() : void { $this->h1 = Lang::main('moreTitles', $this->pageName, $this->catg); array_unshift($this->title, $this->h1); parent::generate(); } } ?>