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

CHtml::dropDownList() and name attribute

$
0
0
Why can't I pass a name attribute in $htmlOptions array of the CHtml::dropDownList() method? Looking through the source code of the dropDownList() method, I see that $htmlOptions['name'] gets overwritten and is ignored. I understand this as a bug. It should first check for the existence of $htmlOptions['name'] and in case it does not exist, then set it.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



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