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
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en