public function serveTheme($request) { $file = $this->getParams()->getThemesPath() . $request; if (file_exists($file)) { return new RawPage($file); } throw new NotFoundException(); }