A
A
Andrey Markov2016-12-11 17:02:23
Yii
Andrey Markov, 2016-12-11 17:02:23

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

1 answer(s)
M
Maxim Fedorov, 2016-12-11
@DmitriyFrolov

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 question

Ask a Question

731 491 924 answers to any question