ES6: Constants Can Change

ES6: Constants Can Change

I recently made the switch from the archaic JavaScript of yester-year that everyone loves to hate to ECMAScript 6 (otherwise known as ES6). If you’re like me, a person who hates change, then you may enjoy that one of the first things you will come to learn and love...
View Models in the Yii Framework

View Models in the Yii Framework

Ever since I started using Yii 2, I felt that the default way of passing data from controllers to views was not ideal, although I could not immediately say why. I kept doing it the way everyone does, thinking that I just need to give myself more time to get used to...
Adding Personal Flair to Your Code

Adding Personal Flair to Your Code

I’ve been thinking recently about the naming conventions I use while coding, and I noticed I tend to follow pretty strict naming standards so I don’t have to put much thought into picking a name. While standards are usually good for readability, too many...
Magic Methods Within Yii2

Magic Methods Within Yii2

Yii and Yii2 utilize various magic methods within the framework, the implementation of which can be found in the Object class, which most of the framework extends off of.  These magic methods __get, __set, __isset, __unset, and __call enforce a set of standards...