Question:How can you add css file in YII?
Answer Yii has a special class named CClientScriptthat can help include scripts, CSS, and other resources in the page. In order to include an external CSS, you can use the following code: Yii::app()->clientScript->registerCssFile('http://example.com/css/main.css');
+ Report
How can you add css file in YII?