i want to add dependent dropdown list in my form so please somebody tell me how to fill that data here is my code.& please explain me in detail actually i am newbie in yii framework.
my problem is that i m not getting data from database n my database name is ‘countries’ & i want to show these countries in my form
<div class="row">
<?php echo $form->labelEx($model,'Country'); ?>
<?php echo $form->dropDownList($model,'Country',CHtml::listData(Country::model()->findAll(), 'country_id', 'country_name'));?>
<?php echo $form->error($model,'Country'); ?>
</div>