yiisoft/yii — pull request #1398 by resurtm (2012-09-13 15:40:45+00:00)
Title: Fixes #1379: CHtml::checkBoxList() and CHtml::radioButtonList(): added support of the grouped data

Fixes #1379.

BC and API are okay.

Testing code:

```php
pageTitle=Yii::app()->name;
?>

Check box list 1

findAll(),'id','name','taskGroup.title'),
array('checkAll'=>'Select all tasks', 'checkAllLast'=>true)
); ?>

Check box list 2

findAll(),'id','name','taskGroup.title'),
array('checkAll'=>'Select all tasks', 'checkAllLast'=>true)
); ?>

Radio button list 1

findAll(),'id','name'),
array()
); ?>

Radio button list 2

findAll(),'id','name'),
array()
); ?>

```

Testing code result:

![](https://dl.dropbox.com/u/916366/github/dropdownlist-grouped-data.png)