Yii 2.0 released!

Yii 2.0 was released yesterday. For those of you who are out of the loop, you can checkout the release notes here. You can also checkout our five part series on the major changes that can be found in Yii 2.0. Have you tried out Yii 2.0 yet? Are you looking forward to trying it out? Let us know what you think about the latest iteration of this PHP framework in the comments below…

Yii2 – What you need to know – Part V (Yii2 Application Structure, Security…)

Yii2 – What you need to know – Part V (Yii2 Application Structure, Security…)

In this last and final installment of the series on Yii2 and it’s new changes, we will take a quick look at all the additional details found in this update to the popular framework that are not covered in the previous parts. Yii2 Application Structure & Installation One of the things you will notice first while starting off development for Yii2 is the new and improved application structure and installation procedure. Yii2 uses composer from the get go to manage dependencies. Moreover, the Yii2 application structure is divided into two broad types: basic and advanced. The basic installation, creates a basic

Yii2 – What you need to know – Part IV (Events, Behaviors & Errors)

Yii2 – What you need to know – Part IV (Events, Behaviors & Errors)

In this installment of the series where we are exploring the Yii2 framework, we will look in detail at the Event Managements, Behavior management and Error Handling features of the Yii2 framework. There are some notable differences in the way Yii2 handles these critical features when compared to how Yii used to handle them. Events For those of you that never used events in your previous Yii based projects, let me tell you, you have been missing a very powerful feature. Events are very useful for two reasons. First, they can make your components more flexible. Second, you can hook your own

Yii2 – What you need to know – Part III (Active Record)

In this installment of the series where we are exploring the Yii2 framework, we will look in detail at the Active Record and database aspects of this powerful framework. We feel that this is one of the strongest sections of Yii2 in terms of both improvements as well as addition of new features. Database Support in the new Active Record class Among the big news in Yii2 Active Record is the support for numerous new backends including NoSQL based ones. These backends include elasticsearch, redis, Sphinx search as well as mongodb. This is great news as we can switch backends without

Yii2 – What you need to know – Part II (MVC)

Yii2 – What you need to know – Part II (MVC)

In part 2 of this series I am going to look at the core MVC concepts of the Yii2 framework. The basic premise of the MVC structure of the Yii2 framework remains the same as that of Yii1.1. This can be seen in the picture. But when we delve deeper into the constructs of the MVC structure, we find a plethora of changes that will make development on the Yii2 platform a more rewarding experience. Models Models in Yii extend from the yii\base\Model class. Models are typically used to both hold data and define the validation rules for that data