$dropDownDistricts = "<input type='checkbox' value=''>All Districts</input>";
foreach($data as $value=>$name)
$dropDownDistricts .= CHtml::tag('input', array('type'=>'checkbox', 'value'=>$value),CHtml::encode($name),true);
this is not generating the closing </input> tag