Archives For framework

On October 23, I’ll be doing an online presentation titled “Faster Web Development with Yii Framework 2”. In this presentation, I’ll be introducing the Yii framework in general, and version 2 in particular. Keep reading this post for an introduction to the presentation, or click the “Faster Web Development with Yii Framework 2” link in the first sentence.

This is a paid event, put on by NomadPHP, but the cost is only $15, for either live attendance or a video afterwards.

Continue Reading...

I wanted to wait on saying something until the chapter was on its way to the tech editors, but it’s the end of the year and the chapter is close enough to being done that I can offer an update now. My wife and kids went away to visit friends for a couple of days, and I stayed home to work, spending the vast majority of my time on “The Yii Book”. Not only did I make pretty good progress on Chapter 19, but I got my Yii book mojo back (in terms of being in the flow and mindset), which is just as important.

Continue Reading...

Content decorators are a less heralded but interesting feature of the Yii framework. Content decorators allow you to hijack the view rendering process and add some additional stuff around the view file being rendered. In this excerpt from Chapter 7, “Working with Controllers,” of “The Yii Book”, I’ll explain what content decorators are and how you use them. (This does assume you have some familiarity with Yii and how it renders the complete layout.)

Continue Reading...

I’m happy to announce that a new version has been posted today. This version includes Chapter 13, “Using Extensions,” and Chapter 14, “JavaScript and jQuery.” This concludes Part 2 of the book (better late than never, eh?).

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