Answer the question
In order to leave comments, you need to log in
$_GET parameters not available in Yii2 component?
I create a component and put it in autoload
'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);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question