/** * Run action */ public function run() { $dataProvider = new ActiveDataProvider(['query' => CronScheduleModel::find(), 'pagination' => ['pageSize' => 20], 'sort' => ['defaultOrder' => ['id' => SORT_DESC]]]); return $this->controller->render($this->view, ['dataProvider' => $dataProvider]); }