There is some confusion regarding the next major version of PHP. Although original slated to be called PHP 6, the developers have reached a consensus that they are going to skip version 6 and go straight to PHP 7. On the surface this might seem like an illogical step, but on further examination, it makes a lot of sense. An RFC was submitted to debate this decision. After a closely and hotly contested debate, it was decided that it was best to skip version 6. Let me try and shed some light on the events that led up to this decision.
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
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
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
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