handle($id); if ($page['published'] == 0) { return $this->notFound(); } $featuredCourses = $this->getFeaturedCourses(); $this->seo->prependTitle(['单页', $page['title']]); $this->view->setVar('page', $page); $this->view->setVar('featured_courses', $featuredCourses); } protected function getFeaturedCourses() { $service = new IndexService(); return $service->getSimpleFeaturedCourses(); } }