Answer the question
In order to leave comments, you need to log in
How to implement in YII2 the time of the last visit to the site by the user?
I found an approximate solution to my question, here yiiframework.ru/forum/viewtopic.php?f=19&t=20204#p...
But it's a little repulsive that the event is fired when 'AccessBehavior' is called, is it possible in Yii to simply run some behavior after execution controller,
Answer the question
In order to leave comments, you need to log in
If you want to implement this functionality through behavior, then you should attach it not to the controller, but to the application, to one of its events
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question