This tutorial presents a way of separating JS code from views and passing to it values from PHP.
One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.
The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.