$_REQUEST is returning null

7357

sdas.png

I am able to get the multiple values of the checkbox but unable to pass them to the controller action

controller code:-





public function actionIndex()

    {

        $searchModel = new QueueSearch;

        $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());

		

		//print_r($_REQUEST);

		//exit;

		if(!empty($_REQUEST['multiple_del'])){

			$rows=$_REQUEST['selection'];

			for($i=0;$i<count($rows);$i++){

				$this->findModel($rows[$i])->delete();

			}

		}

        return $this->render('index', [

            'dataProvider' => $dataProvider,

            'searchModel' => $searchModel,

        ]);

    }