CInputWidget::resolveNameId() [solved]

Hi,

CInputWidget::resolveNameId() isn’t returning input id instead return widget id when model and attribute in used. Shouldn’t input id = CHtml::activeId?

It returns an array with 0=>$name, 1=>$id. The first is determined by CHtml::activeName(), the second is made up by CHtml::getIdByName().

This is weird then… i set my model = SMSBroadcastForm and attribute = time. i should expect SMSBroadcastForm_time as id but i got yw0.

any ideas?

What is the code that generates improper input widget?

ID is calculated from name unless explicitly specified.

sorry to trouble you. i use CHtml::activeId to skip the problem.

thanks anyway. :D