Difference between #9 and #10 of
using multiple radio button

Revision #10 has been created by Rohit Suthar on Jul 31, 2014, 10:27:08 AM with the memo:

corrections
« previous (#9)

Changes

Title unchanged

using multiple radio button

Category unchanged

Tips

Yii version unchanged

Tags unchanged

radiobutton, radio, button, activeRadioButton, multiple, value

Content changed

[...]
```php
echo CHtml::radioButton('btn', false, array(
'value'=>'1',
'name'=>'btnname',
'uncheckValue'=>null
));
 
 
echo 
CHtml::radioButton('btn', false, array(
'value'=>'2',
'name'=>'btnname',
[...]
));


 
//we can use it in activeRadioButton(), too echo $form->radioButton($model, 'name', array( 'value'=>1, 'uncheckValue'=>null ));
 
echo $form->radioButton($model, 'name', array(
'value'=>2,
'uncheckValue'=>null
));
```
[...]
6 0
13 followers
Viewed: 73 673 times
Version: 1.1
Category: Tips
Written by: francis ja
Last updated by: Rohit Suthar
Created on: Mar 7, 2012
Last updated: 9 years ago
Update Article

Revisions

View all history