Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Instead of Your_model - the name of your model.
public function actions(){
$actions = parent::actions();
unset($actions['index']);
return $actions;
}
public function actionIndex(){
$activeData = new ActiveDataProvider([
'query' => Your_model::find(),
'pagination' => [
'defaultPageSize' => -1,
'pageSizeLimit' => -1,
],
]);
return $activeData;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question