- Getting Started
- Fundamentals
- Working with Forms
- Working with Databases
- Caching
- Extending Yii
- Testing
- Special Topics
This page summarizes the main new features introduced in each Yii release.
Added CActiveForm which simplifies writing form-related code and supports seamless and consistent validation on both client and server sides.
Refactored the code generated by the yiic tool. In particular, the skeleton application is now generated with multiple layouts; the operation menu is reorganized for CRUD pages; added search and filtering feature to the admin page generated by crud command; used CActiveForm to render a form.
Improved the way of declaring safe model attributes. See Securing Attribute Assignments.
Changed the default eager loading algorithm for relational active record queries so that all tables are joined in one single SQL statement.
Changed the default table alias to be the name of active record relations.
Added a whole set of new extensions known as the Zii library.
The alias name for the primary table in an AR query is fixed to be 't'
Enhanced support for using CPhpMessageSource to manage module messages
Added support for attaching anonymous functions as event handlers
Added support for retrieving multiple cached values at one time
Introduced a new default root path alias ext which points to the directory
containing all third-party extensions.
Added support for displaying call stack information in trace messages
Added index option to AR relations so that related objects can be indexed
using the values of a specific column
Added support for using named scope with update and delete methods:
Added support for using named scope in the with option of relational rules:
Added support for profiling SQL executions
Added support for logging additional context information
Added support for customizing a single URL rule by setting its urlFormat and caseSensitive options:
Added support for using a controller action to display application errors:
Enhanced active record by supporting named scopes. See:
Enhanced active record by supporting lazy loading with dynamic query options. See:
Enhanced CUrlManager to support parameterizing the route part in URL rules. See: