public function fetch_topics_action() { if (!$GLOBALS['perm']->have_studip_perm("tutor", Request::option("seminar_id"))) { throw new AccessDeniedException(); } $this->topics = CourseTopic::findBySeminar_id(Request::option("seminar_id")); $output = array('html' => $this->render_template_as_string("course/topics/_topiclist.php")); $this->render_json($output); }