- <?php
-
-
-
- namespace common\controllers;
-
- use yii;
-
- class CommonController extends \yii\web\Controller
- {
-
- public function beforeAction($event)
- {
- if (!Yii::$app->user->isGuest) {
- Yii::$app->user->identity->updateLastConnection();
- }
-
- return parent::beforeAction($event);
- }
-
- }
-
- ?>
|