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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -