public function actionDelete() { $activity = CStaffManager::getStudentActivity(CRequest::getInt("id")); $activity->remove(); $this->redirect("?action=index"); }