handle($id); if ($topic['deleted'] == 1) { return $this->notFound(); } $this->seo->prependTitle(['专题', $topic['title']]); $this->seo->setDescription($topic['summary']); $this->view->setVar('topic', $topic); } /** * @Get("/{id:[0-9]+}/courses", name="home.topic.courses") */ public function coursesAction($id) { $service = new TopicCourseListService(); $pager = $service->handle($id); $pager->target = 'course-list'; $this->view->setRenderLevel(View::LEVEL_ACTION_VIEW); $this->view->setVar('pager', $pager); } }