Please take a look at my rewrite, it explains more in detail and does not use the text or the link from the YII page.