I cannot get this piece of code working when I place it within the view file.
<?php echo CHtml::activeDropDownList($model,'birthday',array('1'=>'1','2'=>'2'),array('class'=>'textarea_date')); ?>
The dropdown list is showing up but there are no items visible within it for the user to choose from.
Can anybody point out what I am doing wrong here ?
in view??? or in form ?? is $model->birthday has any value??
Yes in the view class. $model->birthday has no value in the database. Will it be better if I use
CHtml::dropDownList instead of CHtml::activeDropDownList ? I think the later one is more appropriate when the values are stored in the database which in my case is not.
no problem in it…change that class…or remove it…