|
- <?php
-
- namespace frontend\controllers;
-
- use Yii;
- use yii\filters\AccessControl;
- use frontend\controllers\FrontendController;
-
- class EtablissementController extends FrontendController {
-
- public function behaviors() {
- return [
- 'access' => [
- 'class' => AccessControl::className(),
- 'rules' => [
- [
- 'allow' => true,
- 'roles' => ['@'],
- ]
- ],
- ],
- ];
- }
-
- public function actionIndex() {
-
- return $this->render('index') ;
- }
-
- }
|