/** * Specialized link_for for this controller's actions. * * @param String $to Target location (optional, defaults to current * action) * @param Array $params Optional additional parameters (defaults to none) */ public function link_for($to = '', $params = array()) { $whereto = 'course/room_requests/'; if ($to === '') { $whereto .= $this->current_action; } else { $whereto .= $to; } return parent::link_for($whereto, $params); }