Version 1.0.10

    Yesterday, the next version of Yii was released - 1.0.10. It is stated that the release includes about thirty bug fixes and minor improvements.

    Let's see briefly what we can now use in our projects.
    • The most important was fixing the error when executing SQL queries, which sometimes led to errors in subqueries or queries using ActiveRecord.
    • A number of methods have been added to CDbCriteria that will help in building queries (in fact, these are all slightly more convenient options for addCondition () , which was added in 1.0.9):
      • addColumnCondition () - using an associative array (field => value) adds search conditions to the query
      • addInCondition () - by specifying the name of a field and an array with a value, it adds the IN condition to the request (name IN (value1, value2, ...)
      • addSearchCondition () - adds a condition to the query to search for a keyword in a specific field
    • Captcha can now be displayed with a transparent background.
    • The Yii :: registerAutoloader () method has been added , which will allow you to add any methods to autoload. 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
    • The CPhpMessageSource class has been improved so that any extension can manage its own translation strings .
    • And also added CBooleanValidator for checking logical values ​​(for example, different checkboxes).
    • Added optional parameter $ params for CDbCommand :: execute () and query * () methods, which is a mutually exclusive alternative for bindParam () and bindValue ().

    For other improvements or fixes, see changelog .

    The transition from 1.0.9 to 1.0.10 is in theory very safe without any backward compatibility issues. But in 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

    Also popular now: