This is how i do before query on Yii 2.0
This is how i do before query on Yii 2.0
This wiki shows how to get the geolocation info of the client using another server API It could be write also as extension but there are a lots of APIs that change the below code So, I wrote the below code that works for one of them (using www.geoplugin.net)