| @@ 160-173 (lines=14) @@ | ||
| 157 | ); |
|
| 158 | } |
|
| 159 | ||
| 160 | public function actionDelete($id) |
|
| 161 | { |
|
| 162 | $model = Navigation::findOne($id); |
|
| 163 | $model->delete(); |
|
| 164 | Yii::$app->session->setFlash('info', Yii::t('app', 'Object removed')); |
|
| 165 | return $this->redirect( |
|
| 166 | Url::to( |
|
| 167 | [ |
|
| 168 | '/backend/navigation/index', |
|
| 169 | 'parent_id' => $model->parent_id, |
|
| 170 | ] |
|
| 171 | ) |
|
| 172 | ); |
|
| 173 | } |
|
| 174 | ||
| 175 | public function actionRemoveAll($parent_id) |
|
| 176 | { |
|
| @@ 122-135 (lines=14) @@ | ||
| 119 | ); |
|
| 120 | } |
|
| 121 | ||
| 122 | public function actionDelete($id) |
|
| 123 | { |
|
| 124 | /** @var PrefilteredPages $model */ |
|
| 125 | $model = PrefilteredPages::findOne($id); |
|
| 126 | $model->delete(); |
|
| 127 | Yii::$app->session->setFlash('info', Yii::t('app', 'Object removed')); |
|
| 128 | return $this->redirect( |
|
| 129 | Url::to( |
|
| 130 | [ |
|
| 131 | 'index', |
|
| 132 | ] |
|
| 133 | ) |
|
| 134 | ); |
|
| 135 | } |
|
| 136 | ||
| 137 | public function actionRemoveAll() |
|
| 138 | { |
|