What are the difference between the ‘empty’ and ‘prompt’ options? To me, they seem to do/render the same thing.
http://www.yiiframework.com/doc/api/1.1/CHtml#dropDownList-detail
What are the difference between the ‘empty’ and ‘prompt’ options? To me, they seem to do/render the same thing.
http://www.yiiframework.com/doc/api/1.1/CHtml#dropDownList-detail
I was just wondering the exact same thing. Does anyone know what the difference is?
Don’t know what stuation empty is need ? I tried the following array for htmlOption of dropdown List :
array('class' =>'form-control',
'prompt' =>'prompt',
'empty'=>'empty1')
They are printed out in the same html option tag.
After that i tried to an array for empty
array('class' =>'form-control',
'prompt' =>'prompt',
'empty'=>array('empty1','empty2','empty3'))
The empty options are printed out as normal and have value of array keys