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.

CommonController.php 353B

12345678910111213141516171819202122
  1. <?php
  2. namespace common\controllers;
  3. use yii ;
  4. class CommonController extends \yii\web\Controller
  5. {
  6. public function beforeAction($event)
  7. {
  8. if(!Yii::$app->user->isGuest)
  9. {
  10. Yii::$app->user->identity->updateDerniereConnexion() ;
  11. }
  12. return parent::beforeAction($event);
  13. }
  14. }
  15. ?>