public function actionDelete() { $object = CIndPlanManager::getWork(CRequest::getInt("id")); $id = $object->load->person_id; $year = $object->load->year_id; $object->remove(); $this->redirect("load.php?action=view&id=" . $id . "&year=" . $year); }