您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
627B

  1. <?php
  2. namespace frontend\controllers;
  3. use Yii;
  4. use yii\filters\AccessControl;
  5. use frontend\controllers\FrontendController;
  6. class EtablissementController extends FrontendController {
  7. public function behaviors() {
  8. return [
  9. 'access' => [
  10. 'class' => AccessControl::className(),
  11. 'rules' => [
  12. [
  13. 'allow' => true,
  14. 'roles' => ['@'],
  15. ]
  16. ],
  17. ],
  18. ];
  19. }
  20. public function actionIndex() {
  21. return $this->render('index') ;
  22. }
  23. }