Blueprint css customization for a specific page

I’ve customized blueprint css for a small set of views. How do I register this css file only for a specific set of view?

It should be loaded only for a specific view which is 600 pixels wide. Once I close this page, the framework should use default blueprint css which is 950 pixels wide.

Please help.

Create a another layout inside /protected/views/layouts like view600.php and register your css file here as:




<div class='view600wide'>

<?php

echo $content;

?>

</div>

<?php

Yii::app()->getClientScript()->registerCssFile(Yii::app()->baseUrl."/css/new_css_file_4_600_wide_view.css");

?>



And after that change the layout in your controller or in action as




<?php

class view600Controller extends Controller {

	$layout = "//layouts/view600"; // This will change whole view/page of this controller


	public function actionSpecific() {

    	$this->layout="//layouts/view600"; // This will change view layout only for this action


    	$this->render("page_2_render"); // Layout will apply 4 this page

	}

}

?>