'false', 'data' => $data); if (empty($course_id)) { echo json_encode($result); exit; } $Dippler->template->setTemplate("activity.html"); $course = new Course($course_id); $Dippler->template->ajax_activity_objects = $course->getActivities($offset, $limit); $data = $Dippler->template->execute(); $result = array('success' => 'true', 'data' => $data); echo json_encode($result); exit; ?>