Like Search In Cdbcriteria

Like Search in CDbCriteria

$criteria->compare(‘LOWER(name)’,strtolower($this->name),true, ‘AND’, ‘ILIKE’);

Work Fantastic, check it out.

[color="#006400"]NOTE: moved to proper section (Tips, Snippets and Tutorials instead of General Discussion for Yii 1.1.x)[/color]

Thanks.