yii framework

12
Yii Framework Yii Framework Version 2.0.6 Released

Upload: jananya213

Post on 16-Aug-2015

7 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Yii Framework

Yii Framework

Yii Framework Version 2.0.6 Released

Page 2: Yii Framework

Yii Development

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

Features

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

Page 3: Yii Framework

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.

Page 4: Yii Framework

Some of Most Important Features Included in this Version

o Better Migrations Syntaxo Error Handlingo More Control Over Activeform Using Javascripto Yii Message Command Improvementso Assetso Extra Session Fields

Page 5: Yii Framework

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:

Page 6: Yii Framework

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.

Page 7: Yii Framework

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', '');

Page 8: Yii Framework

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.

Page 9: Yii Framework

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:

Page 10: Yii Framework

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:

Page 12: Yii Framework