Answer the question
In order to leave comments, you need to log in
Email protected instead of email, how to fix it?
$user = Users::model()->findAll();
echo CHtml::dropDownList('MoneyPlayerReset[]', '', CHtml::listData($user, 'ID', function($u){ return CHtml::encode($u->email); }), array( 'multiple'=>true, 'empty'=>'All', 'size'=>10 ));
Answer the question
In order to leave comments, you need to log in
In general, I removed @ and everything was fine)
But why such a reaction to @?)
echo CHtml::dropDownList('MoneyPlayerReset[]', '', CHtml::listData($user, 'ID', function($u){ return CHtml::encode(str_replace('@', '', $u->email)); }), array( 'multiple'=>true, 'empty'=>'All', 'size'=>10 ));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question