Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Dropdown Default Empty

$
0
0
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?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>