public function findByPath($pageId, $folder = CONTENT_DIR) { $page = parent::findByPath($pageId, $this->folder); if (empty($page)) { throw new \RuntimeException("Page \"{$pageId}\" not found."); } return $this->decorate($page); }