src/controllers/DefaultController.php
public function actionIndex()
    {
        if (!$this->hasAccess()) {
            return $this->redirect(['login']);
        }
        
        foreach ($this->module->assetFiles as $class) {
            $this->registerAsset($class);
        }

        return $this->render('index', [
            'title' => 'Styleguide',
            'showDomain' => true,
            'styleguide' => $this->extractElementsFromComponent()
        ]);
    }
public function actionIndex()
    {
        if (!$this->hasAccess()) {
            return $this->redirect(['login']);
        }
        
        foreach ($this->module->assetFiles as $class) {
            $this->registerAsset($class);
        }

        return $this->render('index', [
            'title' => 'Styleguide',
            'showDomain' => true,
            'styleguide' => $this->extractElementsFromComponent()
        ]);
    }
public function actionIndex ( ) { if ( ! $ this -> hasAccess ( ) ) { return $ this -> redirect ( [ 'login' ] ) ; } foreach ( $ this -> module -> assetFiles as $ class ) { $ this -> registerAsset ( $ class ) ; } return $ this -> render ( 'index' , [ 'title' => 'Styleguide' , 'showDomain' => true , 'styleguide' => $ this -> extractElementsFromComponent ( ) ] ) ; }
Render Styleguide.

@return \yii\web\Response|string
Render Styleguide .