Hi,
I tried to filter the content of my index view using
$sql= (new Query)->select('*')
->from(['u' => 'app_general_configuration'])
->where('u.is_valid = 1');
$dataProvider = new ActiveDataProvider([
'query' => $sql,
]);
$searchModel = new AppGeneralConfigurationSearch();
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
This is working great. However, the problem appears when I try to view, edit or delete using the buttons in ActionColumn. When I try any of these functions, the url load with the index row and not with element id of the row.
My question is, how could I make load the url with the element id instead of the row index?
Thanks,