|
12345678910111213141516171819202122 |
- <?php
-
- namespace backend\controllers;
-
- use yii ;
-
- class BackendController extends \yii\web\Controller
- {
-
- public function beforeAction($event)
- {
- if(Yii::$app->user->identity->etatPaiementEtablissement() == 'essai-terminee')
- {
- $this->redirect(['paiement/index']) ;
- }
-
- return parent::beforeAction($event);
- }
-
- }
-
- ?>
|