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.
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
}
}
?>