Chapters 22 and 23 of “The Yii Book” are example chapters, in which I don’t cover new material but rather put together previous material in a more complete context. These example chapters have been popular in my other books, so I thought I’d include two in this book. The specific examples I came up with are:

A blog/CMS example
An e-commerce site
The blog (Chapter 22) is a more complete version of what was commonly used as an example throughout the entire book. For the e-commerce example, I came up with the idea of selling books (imagine that!).

Continue Reading...

Much Ado About Yii

October 21, 2014

Without much formality (aside from the Shakespeare), I’d like to share four bits of Yii-related news:

The Release Candidate of Yii 2
Progress on “The Yii Book”
Looking ahead to “The Yii 2 Book” (aka, the second edition)
An online Yii 2 presentation I’m doing this Thursday, October 23, 2014 for Nomad PHP

Continue Reading...

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

In this newsletter and the next two (it’s a three-part series), I’ll discuss the business of freelancing: what it means to be a freelance worker, important things to keep in mind, and how to survive. I freelanced for 14 years before stopping last year when I joined Stripe. I worked on great projects, I worked on duds; some paid well, some clients stiffed me; some I’m still proud of today, and others never made it online. But I learned a lot, and know that it is possible to make a career as a freelancer. Some of you already are freelancing, while others aspire towards that end. No matter your situation, I hope this newsletter provides ideas that are helpful to you in that pursuit.

Continue Reading...

The first thing you’ll need to know to use JavaScript and jQuery in Yii is how to add JavaScript to a Web page. As with any standard Web page, there are two primary options:

Link to an external file that contains the JavaScript code
Place the JavaScript code directly in the page using SCRIPT tags
Just as I assume you’re already comfortable with JavaScript, I’ll also assume you know the arguments for and against both approaches. (Technically, there’s a third option: place the JavaScript inline within an HTML tag. This is not a recommended approach in modern Web sites, however, and I won’t demonstrate it here.)

Continue Reading...