Is it possible to pass a GET parameter to the controller's action when clicking on a link?
Controller Code:
public function actionFilter() { $categoryId = Yii::$app->request->get('id'); return $this->render('index', compact('categoryId')); } The link in the template itself:
<?= Html::a('Horror', ['site/filter'], [ 'data' => [ 'method' => 'get', 'params' => [ 'id' => 'horror', ], ] ]); ?> action controller's action is not even called, but with a POST request, everything works correctly.