[ 'class' => AccessControl::class, 'rules' => [ [ 'actions' => ['index'], 'allow' => true, 'roles' => ['student'] ], ] ], 'corsFilter' => [ 'class' => \yii\filters\Cors::class, ], ]; } public function actionIndex(){ return $this->render('@common/modules/student/components/orders/views/order'); } }