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
Then redefine actionIndex() method yourself to do what you need.
public function actionIndex()
{
//\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
$myQuery = mySpecialModel::find();
$dataProvider = new ActiveDataProvider([
'query' => $myQuery,
'pagination' => [
'pageSize' => 0, // ALL results, no pagination
],
'sort' => [
'defaultOrder' => [
'sortOrder' => SORT_ASC,
'manu' => SORT_ASC,
],
],
]);
return $dataProvider;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question