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
Total Preview: 649
How can you add css file in YII?
Copyright © 2024. Powered by Intellect Software Ltd