Hi to all!
I’m new in this forum and in the use of yii2.
I installed yii2 advanced from zip file, I created a form with a dependence dropdown, I think that it should work fine if it wasn’t be a problem with the url: if I put in the browser url the link http://localhost/testing/frontend/web/index.php?r=site%2Flists-provincie&IDRegione=6 it works as it should, but the link created from the onchange (http://localhost/testing/frontend/web/index.php?r=site%2Flists-provincie%26IDRegione%3D6) doesn’t work.
My code is the following:
<?= $form->field($model, 'Provincia')->dropDownList(GetCountries::getProvincie(),['prompt' => '','id' => 'provincia'])->label('Provincia') ?>
and at onchange the browser returns “not found”.
Can someone help me?