/** * Lists all Action models. * @return mixed */ public function actionIndex() { $allmodels = Condition::models(); $provider = new ArrayDataProvider(['allModels' => $allmodels, 'pagination' => ['pageSize' => 666], 'sort' => ['attributes' => ['id', 'name']]]); return $this->render('index', ['dataProvider' => $provider]); }