You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
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. }