public function actionFindDelect() { $data = city::find()->where(['>', 'delect', 0]); $pages = new Pagination(['totalCount' => $data->count(), 'pageSize' => '20']); $model = $data->offset($pages->offset)->limit($pages->limit)->all(); return $this->render('delect', ['model' => $model, 'pages' => $pages]); }