Hay I am using a static drop down in my site
i want that when i retrieve status in CDetailView it shows name active instead of value . Please tell me how can i do like this? thanks in advance.
<?php echo $form->dropDownList($model,'status',array("1"=>"Active","0"=>"InActive")); ?>
i want that when i retrieve status in CDetailView it shows name active instead of value . Please tell me how can i do like this? thanks in advance.