src/controllers/DefaultController.php
public function actionIndex()
    {
        $tags = [];
        foreach (TagParser::getInstantiatedTagObjects() as $name => $object) {
            $tags[] = [
                'name' => $name,
                'example' => $object->example(),
                'readme' => Markdown::process($object->readme()),
            ];
        }
        
        // register i18n
        $this->view->registerJs('var i18n=' . Json::encode($this->module->jsTranslations), View::POS_HEAD);
        
        $authToken = UserLogin::find()->select(['auth_token'])->where(['user_id' => Yii::$app->adminuser->id, 'ip' => Yii::$app->request->userIP, 'is_destroyed' => false])->scalar();
        
        $this->view->registerJs('zaa.run([\'$rootScope\', function($rootScope) { $rootScope.luyacfg = ' . Json::encode([
            'authToken' => $authToken,
            'homeUrl' => Url::home(true),
            'i18n' => $this->module->jsTranslations,
            'helptags' => $tags,
        ]). '; }]);', View::POS_END);
        
        return $this->render('index');
    }
public function actionIndex()
    {
        $tags = [];
        foreach (TagParser::getInstantiatedTagObjects() as $name => $object) {
            $tags[] = [
                'name' => $name,
                'example' => $object->example(),
                'readme' => Markdown::process($object->readme()),
            ];
        }
        
        // register i18n
        $this->view->registerJs('var i18n=' . Json::encode($this->module->jsTranslations), View::POS_HEAD);
        
        $authToken = UserLogin::find()->select(['auth_token'])->where(['user_id' => Yii::$app->adminuser->id, 'ip' => Yii::$app->request->userIP, 'is_destroyed' => false])->scalar();
        
        $this->view->registerJs('zaa.run([\'$rootScope\', function($rootScope) { $rootScope.luyacfg = ' . Json::encode([
            'authToken' => $authToken,
            'homeUrl' => Url::home(true),
            'i18n' => $this->module->jsTranslations,
            'helptags' => $tags,
        ]). '; }]);', View::POS_END);
        
        return $this->render('index');
    }
public function actionIndex ( ) { $ tags = [ ] ; foreach ( TagParser :: getInstantiatedTagObjects ( ) as $ name => $ object ) { $ tags [ ] = [ 'name' => $ name , 'example' => $ object -> example ( ) , 'readme' => Markdown :: process ( $ object -> readme ( ) ) , ] ; } // register i18n $ this -> view -> registerJs ( 'var i18n=' . Json :: encode ( $ this -> module -> jsTranslations ) , View :: POS_HEAD ) ; $ authToken = UserLogin :: find ( ) -> select ( [ 'auth_token' ] ) -> where ( [ 'user_id' => Yii :: $ app -> adminuser -> id , 'ip' => Yii :: $ app -> request -> userIP , 'is_destroyed' => false ] ) -> scalar ( ) ; $ this -> view -> registerJs ( 'zaa.run([\'$rootScope\', function($rootScope) { $rootScope.luyacfg = ' . Json :: encode ( [ 'authToken' => $ authToken , 'homeUrl' => Url :: home ( true ) , 'i18n' => $ this -> module -> jsTranslations , 'helptags' => $ tags , ] ) . '; }]);' , View :: POS_END ) ; return $ this -> render ( 'index' ) ; }
Render the admin index page.

@return string
Render the admin index page .