php - Yii2 dropdownlist WITHOUT $model -
I searched the web far and wide to solve this problem. I already know the way Yii2 dropdown:
but I want to dropdown without the $ model
... is there any way to do this?
Thanks in advance!
You can also use
Html :: dropDownList ( )
& lt ;? = Html :: dropDownList ('s_id', blank, ArrayHelper :: map (standard :: find () - & gt; all (), 's_id', 'name'))? & Gt;
View
Comments
Post a Comment