public function actionDelete() { $object = CStaffManager::getPersonCourse(CRequest::getInt("id")); $person = $object->kadri_id; $object->remove(); $this->redirect("index.php?action=edit&id=" . $person); }