public function getRouteData() { return Page::query()->select(['id', 'path', 'page_type'])->orderBy('route_priority', 'desc')->get()->toArray(); }
public function actionIndex() { return $this->render(['items' => Page::query()->orderBy(['date_insert' => SORT_DESC])->all()]); }