Hi I have a dynamic dropdown list and my code is
$myArray=CHtml::listData(brand::model()->findAll(), 'id', 'brandname');
but I want that their is also an option or the default in dropdown is null, i dnt know how?
$myArray=CHtml::listData(brand::model()->findAll(), 'id', 'brandname');
but I want that their is also an option or the default in dropdown is null, i dnt know how?