Example #1
0
 /**
  * Show the given appointment.
  *
  * @param  string  the ID of the course
  * @param  string  the ID of the cycle
  * @param  string  if you give this optional param, it signals an Ajax request
  * @return void
  */
 function bind_action($seminar_id, $cycle_id, $ajax = false)
 {
     CalendarScheduleModel::bind($seminar_id, $cycle_id);
     if (!$ajax) {
         $this->redirect('calendar/schedule');
     } else {
         $this->render_nothing();
     }
 }