Yesterday another version of Yii was released - 1.0.10. It is stated that the release includes about thirty bug fixes and minor improvements.
Let's briefly see what we can now use in our projects.
The most important was the correction of errors in the execution of SQL queries, which sometimes led to errors in subqueries or queries using ActiveRecord.
A number of methods have been added to CDbCriteria , which will help in building queries (in fact, these are all slightly more convenient options addCondition () , which was added in 1.0.9):
addColumnCondition () - using an associative array (field => value) adds conditions for the search to the request
addInCondition () - by specifying a field name and an array with a value, adds IN condition to the request (name IN (value1, value2, ...)
addSearchCondition () - adds to the request a condition for searching a keyword in a specific field
Captcha can now be displayed with a transparent background.
Added method Yii :: registerAutoloader () , which allows you to add any methods to startup. This will simplify the integration of any third-party classes in the Yii environment.
Added support for using anonymous functions (for PHP 5.3+) as event handlers
And added CBooleanValidator to check logical values (for example, checkboxes are different).
An optional $ params parameter has been added for the CDbCommand :: execute () and query * () methods, which is a mutually exclusive alternative for bindParam () and bindValue ().
For other improvements or bug fixes, see the changelog .
The transition from 1.0.9 to 1.0.10 is in theory very safe without any problems with backward compatibility. But in the case of transition from 1.0.8 and earlier versions, it is strongly recommended to refer to the corresponding instruction: www.yiiframework.com/files/UPGRADE-1.0.10.txt