[ 'class' => AccessControl::className(), 'only' => ['index'], 'rules' => [ [ 'actions' => ['index'], 'allow' => true, 'roles' => ['@'], ], ], ], ]; } public function actionIndex() { return $this->render('index'); } }