Yii 1.1.6 is released

We are very pleased to announce the release of Yii Framework version 1.1.6. This new version is now available for download from the Yii site:

http://www.yiiframework.com/download/

This release includes more than 50 feature enhancements and bug fixes. Some exciting new features include:

  • Added a SQL query builder

  • Implemented database migration support

  • Enhanced support for using plural forms, and upgraded CLDR i18n data to version 1.9

  • Improved exception display in Web mode and error display in console mode

  • Added support for using anonymous parameters and global options in console commands

  • Added support for using X-Sendfile to send files

For the complete list of changes in this release, please see:

http://www.yiiframework.com/files/CHANGELOG-1.1.6.txt

http://www.yiiframework.com/doc/guide/changes

If you plan to upgrade from an older version to 1.1.6, refer to the following upgrade instructions :

http://www.yiiframework.com/files/UPGRADE-1.1.6.txt

Thank you for your support!

The Yii Developer Team

Some more details.

SQL query builder

Allows not to use AR and still have a nice code:


$user = Yii::app()->db->createCommand()

  ->select('username, password')

  ->from('tbl_user')

  ->where('id=:id', array(':id'=>1))

  ->queryRow();

Details

Database migration support

Migrations will allow you to keep your database schema up to date when working in a team. Migration tool works via command line and also can be integrated with SVN hooks to deploy DB changes automatically.

Details

Enhanced support for using plural forms

This one is about additions to Yii::t that will make creating international applications easier:




Yii::t('test', '{username} has a cucumber|{username} has {n} cucumbers',

array(5, '{username}' => 'samdark'));



will give you:


samdark has 5 cucumbers

Details

Improved exception display in Web mode and error display in console mode

Main web mode enhancements are displaying method call parameters and code blocks for each trace step. Also it looks a lot better. You should really check it.

Support for using anonymous parameters and global options in console commands

Now you can create console commands to accept anonymous position-based parameters.

Details

Support for using X-Sendfile to send files

This one is to send files to a browser efficiently.

A guide on MVC

A very nice guide on MVC principles added. It will help developers to understand Yii way of doing things:

http://www.yiiframework.com/doc/guide/1.1/en/basics.best-practices

Great work guys…congrats and thanks!!

Thanks guys for hard work!

Wow! the query builder is so cool and is similar to CodeIgniter too.

If it is alright, I would also like to request examples in the documentation for different possible situations, that way, entry level would be lower and adapting would be a bit faster.

Great i’m wait for it …congrats and thanks!! and i hope you get given for your hard work!

Thanks for another part of this great job :)

Hello, congrats to Yii team, thanks. query builder is one of the ultimate component i have been waiting for. :lol:

Congrat!

Congrats!!!

As more perfect becomes this framework, more grows my love for it!!!

hey hey hey!

Good job! :)

–iM

True! I’d also suggest to create a more solid UI layer and it will be

best of the best :) As far as I remember Qiang promised to “cleanup”

UI layer in 1.2… Does anyone know anything about it?

Really liked the error display improvements. :) Loved it. Love to use this framework :)

Thank you so much for your hard work on this framework!

Supercool!

Thanks so much for all your efforts! The improved exception display is pretty neat indeed.

Congrats!

I didn’t see the migration feature coming - really nice!

My personal gratitude and congratulations!

Wonderful! Can’t wait to really dig into the new additions =)

it is good to see the dev team implements the good features of the ruby on rails. congrats.