Hi
how can i add a count of the distinct values in a dropDownList.
ex:
echo $form->labelEx($model, 'pessoas');
echo $form->dropDownList($model, 'pessoas', CHtml::listData(Casa::model()->findAll(), 'pessoas',array('pessoas','2' ), array(
'prompt' => 'Todas',
'ajax' => array(
'type' => 'POST',
'url' => CController::createUrl('casa/dynamicTipo'),
'update' => '#Casa_tipo', //selector to update
)));