Archives For Web Development

Quick update on my progress on “The Yii Book”…

Continue Reading...

Much of the work done with models involves using the methods defined within the model classes. These methods, such as rules() and relations(), are created by the code generator Gii. You’ll also add your own methods to the code generated for you. But, thanks to inheritance, there are lots of methods common to Yii models that you’ll frequently use. In this post, I want to specifically look at methods used to handle model-related events. Before looking at the usage of these methods, let’s first look at event handling in Yii in general.

Continue Reading...

Over the weekend, I posted an update to “The Yii Book”. This is version 0.5, which means I’m halfway there (about the time I was hoping to have the book done; so much for good intentions). With that in mind, my sincerest thanks to everyone for their patience. I know this is taking longer than we’d all like, but I’m doing my best and very much appreciate the understanding on your part. It’ll get done, I promise. And trust that “The Yii Book” is not taking a back seat to anything as far as my work goes these days.

Continue Reading...

Thomas Fuchs, creator of the script.aculo.us JavaScript library and the Freckle online time tracking site, posted a great page of useful services a couple of weeks back. These are sites and tools that Thomas and Amy Hoy have found to be invaluable in running their Freckle SaaS (Software as a Service). From Web site and server monitoring, to log management, to email tools, there’s about a dozen or more products that come highly recommended (and not all necessarily cost).

Continue Reading...

A topic critical to controllers, although not dictated within the actual controller code are routes. Routes are how URLs map to the controller and action to be invoked. Chapter 3, “A Manual for Your Yii Site,” introduced the basic concept and Chapter 4 explained how to configure the “urlManager” component to change how routes are formatted. Let’s now look at the topic in greater detail.

NOTE: This is an excerpt from Chapter 7, “Working with Controllers,” of “The Yii Book”.

Continue Reading...