src/controllers/LogController.php
public function actionDeleteIn()
    {
        $selected = Yii::$app->request->post('selected' , []);

        $ret = \yongtiger\admin\models\Log::deleteAll(['id' => explode(',', $selected)]);
        $str = $ret > 0 ? ' (IDs [' . $selected . '])' : '';
        Yii::$app->session->setFlash('info', Module::t('message', 'Deleted {0} logs.', $ret) . $str);

        return $this->redirect(['index']);
    }
public function actionDeleteIn()
    {
        $selected = Yii::$app->request->post('selected' , []);

        $ret = \yongtiger\admin\models\Log::deleteAll(['id' => explode(',', $selected)]);
        $str = $ret > 0 ? ' (IDs [' . $selected . '])' : '';
        Yii::$app->session->setFlash('info', Module::t('message', 'Deleted {0} logs.', $ret) . $str);

        return $this->redirect(['index']);
    }
public function actionDeleteIn ( ) { $ selected = Yii :: $ app -> request -> post ( 'selected' , [ ] ) ; $ ret = \ yongtiger \ admin \ models \ Log :: deleteAll ( [ 'id' => explode ( ',' , $ selected ) ] ) ; $ str = $ ret > 0 ? ' (IDs [' . $ selected . '])' : '' ; Yii :: $ app -> session -> setFlash ( 'info' , Module :: t ( 'message' , 'Deleted {0} logs.' , $ ret ) . $ str ) ; return $ this -> redirect ( [ 'index' ] ) ; }
Deletes selected in post.
If deletion is successful, the browser will be redirected to the 'index' page.
@return mixed
Deletes selected in post . If deletion is successful the browser will be redirected to the index page .