/** * Function progress get team by tour ID */ function actionList($id = 2) { $id = Request::getVar("tour_id", $id); $model = Teams::getInstance(); global $user; if (!$user->isSuperAdmin()) { YiiMessage::raseNotice("Your account not have permission to add/edit Team"); $this->redirect(Router::buildLink("gamesport", array('view' => 'teams'))); } $items = $model->ListTeam($id); echo json_encode($items); }