Archives For yiibk

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...

Last year was a fairly active one for me in terms of public speaking. I spoke at four events, each quite different than the next, and I really worked hard on becoming a better public speaker. (Those two activities–public speaking and working on becoming a better public speaker–don’t always go hand-in-hand, sadly.) Over the course of the year, I learned quite a bit, both about myself and about public speaking in general. In this newsletter, I thought I’d share some thoughts and resources along those lines.

As always, questions, comments, and all feedback are much appreciated. And thanks for your interest in what I have to say and do!

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...

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...