'bootstrap' => ['setGeo', 'log'],
...
'components' => [
...
'setGeo' => [
'class' => 'frontend\components\setGeo',
],
...
]
...
class setGeo extends yii\base\Component
{
public function init() {
var_dump(Yii::$app->request->get()); // or var_dump($_GET);
}
}