public function actionIndex() {
$query = Users::find();
$start = \Yii::$app->request->get('start');
$limit = \Yii::$app->request->get('length');
$pagination = new Pagination([
'totalCount' => $query->count(),
]);
$users['data'] = $query->offset($start)
->limit($limit)
->all();
$users['recordsTotal'] = $pagination->totalCount;
$users['recordsFiltered'] = $pagination->totalCount;
return $users;
}