Archives For PHP

Let’s look at a different way of rendering view files: using static pages. The difference between a static page and a standard page in the site is that the static page does not change based upon any input. In other words, a dynamic page might display information based upon a provided model instance, but a static page just displays some hard-coded HTML (in theory).

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

Continue Reading...

Nettuts+ recently posted “HTTP: The Protocol Every Web Developer Must Know – Part 1” by Pavan Podila. This is the first part of a two-part article, covering what every Web developer ought to know about the Hypertext Transfer Protocol. This is a nicely detailed, but understandable, article that truly every Web developer should read. (Well, if you’re not familiar with HTTP in some detail already.)

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

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

Continue Reading...