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

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -