public function actionDelete($id) { $id = (int) $id; if (empty($id)) { return $this->redirect('index'); } $famil_bud = new FamilyBudget(); $sql = $famil_bud->findOne($id)->delete(); return $this->redirect('index'); }
public function actionDelete($id) { $id = (int) $id; if (empty($id)) { return $this->redirect('index'); } $famil_bud = new FamilyBudget(); $sql = $famil_bud->findOne($id)->delete(); return $this->redirect('index'); }