html - how to use the “required” attribute in Yii booster radioButtonListRow -


Does anyone know the use of the "required" attribute in the Yii booster radio button list cry for any client-side verification?

$ form-> Radio-button Listro ($ model, "Rediobutns', array ( 'option' a ', the option'));

Its nothing with Yonfoster Yii deals with its rules in your model You can refer to such as

  array ('your specialty', 'required'),  

and you can use it as

$ form-> echo $ form-> RadioButtonListRow ($ model, 'your specialty', array ('0' = & gt; 'option one', '1' =>, 'option two',));

Yii will automatically validate the attribute you specify


Comments