In my database I store the "active" attribute as an integer (1/0), in my view I transform this into text (Yes/No):
Model:
public function getIsActive()
{
return $this->active ? 'Yes' : 'No';
}
I have implemented filters in my View:
array(
'name'=>'active',
'value'=>'$data->isActive',
'filter'=>array('1'=>'Yes', '0'=>'No'),
),
search() function:
$criteria->compare('active', $this->active);
The filter works OK in Firefox but not in IE ( 7/8 ).