/** * Gets called after the form is saved. * * @since 0.1 */ public function onSuccess() { $this->getOutput()->redirect(SpecialPage::getTitleFor('MyCourses')->getLocalURL(array('enrolled' => $this->term->getId()))); }