Berikut adalah contoh singkat penggunaan CHtml di YII yang saya kutip langsung dari situs resmi nya : http://www.yiiframework.com/ , cekidot .!!
"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.
Smarthead will be pulling these from the forum when he is not finding the answers on his own. Please request examples using the comments below or ask for an example in the forum. Thanks.