Yii Framework

Page 1

Yii Framework Yii Framework Version 2.0.6 Released


Yii Development o o o o

Yes It Is ! Open source component based framework fast, secure, high performance PHP framework , Yii is simply a fine tool.

Features -- caching -- MVC, -- DAO I18N or L10N (internationalization and localization), -- Scaffolding authentication, -- Testing and a lot more


Yii Framework Version 2.0.6 Released The most important features added in this powerful version 2.0.6

Version 2.0.6 is a patch release of Yii 2.0 which contains over 70 minor new features and bug fixes as well as numerous improvements to documentation and great progress on guide translations.


Some of Most Important Features Included in this Version o o o o o o

Better Migrations Syntax Error Handling More Control Over Activeform Using Javascript Yii Message Command Improvements Assets Extra Session Fields


o Better Migrations Syntax

o Migrations are a convenient way to alter your database schema over time in a consistent and easy way.

o Planning schema builder for 2.1 at first however pana1990 and vaseninm made a move and now we've showed signs of improvement migrations syntax:


o Error Handling There are many fixes and improvements that should make error handling even more reliable and useful:  Yii is now able to properly handle HHVM fatal errors.  A warning is now written to logs in case FileCache fails to write into a file.  yii\web\ErrorAction displays 404 error instead of blank page on direct access.  Json::encode() and Json::decode() are handling errors better throwing meaningful exceptions.  ErrorHandler::logException() now logs the whole exception object instead of only its string representation. This can be used in custom log targets to provide more detailed error information.


o More Control Over Activeform Using Javascript o

With this new YII Framework Version 2.0.6 there is more control over ActiveForm using JavaScript.

o

Update error messages of certain fields:

Exapmle: // add error $('#contact-form').yiiActiveForm('updateAttribute', 'contactform-subject', ["I have an error..."]); // remove error $('#contact-form').yiiActiveForm('updateAttribute', 'contactform-subject', '');


o Yii Message Command Improvements 

In this version of YII Framework Message extraction command is now supports .pot file creation.

And also supports nested Yii::t()

Always sorting created messages.

Also a new config option called markUnused that allows configuring behaviour of adding @@ to unused messages.


o Assets o

Possible to fine-tune what's published and what's not.

o

Now customize the way directory name hashes (the ones in web/assets directory) are generated.

o

It could be done right from application config:


o Extra Session Fields

ďƒź

In this version of YII Framework easily store extra data in session storage.

ďƒź

Currently it's supported in yii\web\DbSession but could be possibly extended to more storages in future. In order to configure it, modify the session component in your application config:


Resources http://www.yiiframework.com/news/88/yii-2-0-6-is-released/ http://probytes.net/services/yii-development/



Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.