What developers find new in Yii 2.0.2?
Yii is a well-known PHP framework developed at the later stages of 2008, but if we close check the security features and documentation, Yii is a framework which keeps on offering developers new possibilities. Yii developers always find very good options to rejoice when they utilize Yii for many of the developmental tasks, for it is loaded with top class features. Recently, Yii 2.0.2 has been released as an updated version of Yii 2.0.1. Let us find what new features developers will receive in the latest version of Yii 2.0.2.
Route Alias. Helper methods
In the old versions of Yii the base frameworks has support for alias while they are used to perform along with file paths as well as URL. Developers will find it great that they will get support for route alias in the new version. Developers get an option to construct an alias for the sole purpose of the route, and they can pass the reference of this alias while they construct the URL. The methods that support the route alias are Url::to(), and Url::toRoute(). The introduction of route alias will serve developers at the situations when the route design does not get properly fixed, and at the change of codes while developing various URLs.
A config. Array for dependent component
Yii has many components that encompass certain properties which are to be configured to form the ID of a dependent component. While doing the unit testing, a developer may find it odd to introduce a new component all the time. The new update will help Yii developers to configure the db property while indicating the ID of certain application components, and while working with array configuration when developing Yii\db\Connection instances.
Immutable slug to help SEO
A new property titled Immutable slug is launched to ease the work of developers who make use of Yii\behaviour\Sluggable Behaviour.If developers sets this property to be true, they will not have to change the relating attribute value all the times when the sources alter all the times. This happens to be a SEO friendly addition, for SEO analysts do not have to alter the already published URLs that make use of the slug. With the constant change of corresponding values the slug also changes. Now with Yii2.0.2 things are far improved.
New widgets are introduced
A new widget named, DatePicker was introduced to support maximum language fallback. It will be useful while setting the locale language IDs. It helps developers a lot while the widgets fall short of identifying the language files.
A unique addErrors()
A much refined addErrors() in Yii 2.0.2 will assist developers to pass validation errors from one particular model to the other. Just by calling this new method developers can pass error validations from one particular class to another model so easily.
Conclusion
Yii framework is notable for its security features, as well as speed. With the updated version, Yii developers get more chances to improve their coding to a higher level. Community support which Yii receives is also getting extended at amazing rates these days. It makes Yii a favourite platform for many web developers.
0 comments: