echo CHtml::activeHiddenField('model', 'attribute');
echo CHtml::activeHiddenField('model', 'attribute', array('value'=> 'default'));
echo CHtml::activeHiddenField('model', 'attribute', array('class'=> 'my-class', 'data-custom'=> 'value'));This code will generate a hidden input field with the name 'model[attribute]', the class 'my-class', and a custom data attribute 'data-custom' with the value 'value'.