Hi there,
As a YII2 beginner, i have a very easy question, and i was really surprised to not find the answer by myself on the internet but i have to say that after some research i didn't find anything. Question is:
How to get the current value of a dropDownList into a view? (to fill a grid depending of the value of the dropDownList)
So here is my code:
<?= $form->field($model, 'spe')->dropDownList(
ArrayHelper::map(Specialites::find()->all(), 'id_spe', 'lib_spe'),
[
'prompt'=>'Choose a spe',
])-&g