backend/controllers/PostTypeController.php
/**
     * Bulk action for PostType triggered when button 'Apply' clicked.
     * The action depends on the value of the dropdown next to the button.
     * Only accept POST HTTP method.
     */
Bulk action for PostType triggered when button 'Apply' clicked.
The action depends on the value of the dropdown next to the button.
Only accept POST HTTP method.
Bulk action for PostType triggered when button ' Apply ' clicked . The action depends on the value of the dropdown next to the button . Only accept POST HTTP method .
public function actionBulkAction()
    {
        if (Yii::$app->request->post('action') === 'deleted') {
            foreach (Yii::$app->request->post('ids', []) as $id) {
                $this->findModel($id)->delete();
            }
        }
    }
public function actionBulkAction ( ) { if ( Yii :: $ app -> request -> post ( 'action' ) === 'deleted' ) { foreach ( Yii :: $ app -> request -> post ( 'ids' , [ ] ) as $ id ) { $ this -> findModel ( $ id ) -> delete ( ) ; } } }
Bulk action for PostType triggered when button 'Apply' clicked.
Bulk action for PostType triggered when button ' Apply ' clicked .