Ok anyone get this working?
I have in my layout
<?php echo $html->css(array( 'styles' , 'typography' ), null, array( 'inline' => false ) );?>
<?php echo $javascript->link( array( 'jquery-1.4.2.min'), false ); ?>
<?php echo $asset->scripts_for_layout();?>
So these get compressed all good up until this point.
Now in the views if I add a new css it breaks
I have in a view $javascript->link( array( 'jquery.form'), false ); and it adds it to the layout 'jquery-1.4.2.min' perfect just what I want.
But I can not add any new css styles.
Docs:
7. Similarly include your css with the inline option set to false:
$html->css('style', null, null, false);
White page, my guess is that’s an older 1.2 css tag so I use $html->css('colorbox', null, null, false); and what happens now is I get 4 css / js links.
Css => the 2 original from the layout compressed
Js => the original form layout
Css => new css sheet from view
Js => new js from view.
I just want 2 files to end with, 1 css and 1 js.
Any help would be great thanks.
Dave
No comments:
Post a Comment