public function actionDelete() { $work = CIndPlanManager::getWorktype(CRequest::getInt("id")); $work->remove(); $this->redirect("worktypes.php?action=index"); }