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

Yii2 – What you need to know – Part I

Yii2 – What you need to know – Part I

Introduction The Yii project had started on  January 1, 2008, by some of the developers that were responsible for the PRADO framework. Their vision was to improve upon the PRADO framework and address all of it’s shortcomings. On December 3, 2008, Yii 1.0 was formally released and quickly became a major force in the huge ocean of PHP frameworks due to its performance, ease of use and adherence to some of the best practices of the industry at that time. Over time, as development on the PHP language itself picked up steam and new and more modern features got added, the developers