[ 'class' => AccessControl::className(), 'except' => ['login', 'error'], 'rules' => [ [ 'allow' => true, 'roles' => ['@'] ], ], ], 'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ 'logout' => ['post'], 'delete-req' => ['post'] ], ], ]; } /** * Lists all Specialization models. * @return mixed */ public function actionIndex() { return $this->render('index', [ ]); } }