Like Search In Cdbcriteria


(Fareed543) #1

Like Search in CDbCriteria

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

Work Fantastic, check it out.


(Maurizio Domba Cerin) #2

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


(Fareed543) #3

Thanks.