$criteria = new CDbCriteria; $criteria->addColumnCondition(array('status'=>1, 'is_archived'=>0));
$criteria = new CDbCriteria; $criteria->addColumnCondition("MONTH(date_created)", date('n'));This code creates a new instance of CDbCriteria and adds a condition to select records where the month of date_created is the current month. This can be used to retrieve records created in the current month. The package library for CDbCriteria is part of the Yii PHP framework.