Position of CSS links registered in a package

In my base controller init() I have

	Yii::app()->clientScript->packages = array(

		'mytheme' => array(



		    'js'=>array('js/layout.js', 'js/ga.js'),

		    'css'=>array('css/form.css', 'css/main.css'),




In the main layout view for this theme I have


The result is

	<link rel="stylesheet" type="text/css" href="/themes/mytheme/css/form.css" />

	<link rel="stylesheet" type="text/css" href="/themes/mytheme/css/main.css" />

	<link rel="stylesheet" type="text/css" href="/assets/6f820acc/gridview/styles.css" />

	<link rel="stylesheet" type="text/css" href="/assets/91c550a1/pager.css" />

	<script type="text/javascript" src="/assets/e9821d3b/jquery.js"></script>

	<script type="text/javascript" src="/assets/e9821d3b/jquery.ba-bbq.js"></script>

	<script type="text/javascript" src="/themes/mytheme/js/layout.js"></script>

	<script type="text/javascript" src="/themes/mytheme/js/ga.js"></script>

I had wanted to override default zii styles in gridview/styles.css and pager.css with my theme style rules but Yii has separated out my CSS client scripts and put them before its own. How can I control this?

Hi you will probably have to use “!important” inside css files them self so it won’t be overriden by yii’s files, you probably figured this out, but just in case someone else runs into this problem. I’m newbe to yii and as far as I know you can’t control the order yii puts css files