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

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

Windows 8 Alternatives?

For those of you who feel you have been shortchanged by Microsoft’s new Windows 8 along with it’s metro style interface, don’t worry. There a host of operating systems out there that you can try out for a replacement to your trusty old OS. Below are some of the best alternatives. I am sticking to Linux based systems and prefer not to guide newbies to other Operating Systems such as BSD. Ubuntu You may have already heard of Ubuntu. It is the first stop you should make on your way to Linux desktop computing. It is the easiest way to