use yii; | use yii; | ||||
class CommonController extends \yii\web\Controller { | |||||
class CommonController extends \yii\web\Controller | |||||
{ | |||||
public function beforeAction($event) { | |||||
public function beforeAction($event) | |||||
{ | |||||
if (!Yii::$app->user->isGuest) { | if (!Yii::$app->user->isGuest) { | ||||
Yii::$app->user->identity->updateDerniereConnexion(); | Yii::$app->user->identity->updateDerniereConnexion(); | ||||
} | } |