Reputation: 67
I have a dropdownlist in my form:
<?= Html::activeDropDownList($model, 'Id_tipoprograma',
ArrayHelper::map(Tipoprograma::find()->all(), 'Id_tipoprograma', 'Id_tipoprograma', 'Descripcion'))?>
i want to receive "Id_tipoprograma" in the controller, i tried with:
$idtp = $model->Id_tipoprograma;
But doesn't work. thanks.
Upvotes: 0
Views: 572