php - Yii DropDownListRow - choose Controller Actions -


Is it possible to create a DropDownListRow on a format that does not have any $ Model parameters? I want to select users from the list of controller tasks using the dropdown list row (YiiBooster version of the dropdown list). I'm just working with a list of actions from the controller, so I do not need a $ model in the widget parameter.

The problem is that until the one associated with it, the $ model I want the user to choose the controller action, and then the related subform is open based on the selection of that user.

Besides @ramamoorthy_villi answer

To create a dropdown list, just click < Strong> CFTF S, then you can fill your dropdown with your own data,

  $ data = array ('selected_value' = & gt; default controller / action ',' 2 '= & gt;' Controller 2 / verb ',' 3 '=>' Controller 3 / Action ',) Chcho :: dropdownList (' name ',' selected_ value ', $ data) echo;   

You now have this with defaultController / action pre-selected

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -