Hi,
I was thinking of creating a function where i able to record my user's user agent or referrer.
The idea is the moment a user entered the my website no matter from which url/controller. i want to record the user agent/referrer data.
However, is it the only way achieve this is i need to put the this->referrer helper to all my controller method?
Or is there any kind of ''global controller' where it will be applied to all instances?
best approach i think of right now is by using
__construct() in all controller. but still, need to applied to all controller rather than 1 for all approach.