Could anyone tell me how to include the css file style.css of cgridview in a page?

I am working on a mini project where i have designed a custom table for reports.

I need exact table design of cgridview. I added necessary classes in div ( class="grid-view" ) and table ( class="items").

But i have no idea about how to include the cgridview css (gridview/style.css from yii/framework folder).

Thanks in advance

This could be your solution.





<?php

$baseScriptUrl=Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('zii.widgets.assets'));


Yii::app()->clientScript->registerCssFile($baseScriptUrl.'/gridview/style.css');  

?>




Thank You. It works… Thanks a lot

Need to add styles.css

Yii::app()->clientScript->registerCssFile($baseScriptUrl.’/gridview/styles.css’);