private static function initPages()
    {
        $modelPage = Yii::createObject(Page::class);
        $pages = $modelPage::find()->getMap()->asArray()->all();

        if ($pages) {
            foreach ($pages as $page) {
                self::$pages[$page['id']] = $page;
            }
        }

    }
private static function initPages()
    {
        $modelPage = Yii::createObject(Page::class);
        $pages = $modelPage::find()->getMap()->asArray()->all();

        if ($pages) {
            foreach ($pages as $page) {
                self::$pages[$page['id']] = $page;
            }
        }

    }
private static function initPages ( ) { $ modelPage = Yii :: createObject ( Page :: class ) ; $ pages = $ modelPage :: find ( ) -> getMap ( ) -> asArray ( ) -> all ( ) ; if ( $ pages ) { foreach ( $ pages as $ page ) { self :: $ pages [ $ page [ 'id' ] ] = $ page ; } } }
Init pages array
@throws \yii\base\InvalidConfigException
Init pages array