Has anyone has success with this helper in the way I am attempting to you
it. Cake v1.3.7
Layout template:
<?php $html->css(array('styles','typography', 'jquery.fancybox-1.3.4'),
null, array( 'inline' => false ) ); ?>
<?php echo $javascript->link( array( 'jquery-1.4.2.min' ), false ); ?>
<?php echo $asset->scripts_for_layout();?>
In additional views I simply just add the view specific js or css for that
page
<?php $html->css(array('forms','tools', 'jquery.fancybox-1.3.4'), null,
array( 'inline' => false ) ); ?>
<?php echo $javascript->link( array('jquery.form', 'jquery.blockUI',
'jquery.tools.min' ), false ); ?>
I end up with 2 css combined scripts and 2 js combined scripts the helper
returns in the head:
- 1 css compressed
- 1 js compressed
- 1 css compressed <= order css after js
- 1 js compressed
If I simply test with no additional css / js files in the view I get 1
compressed file of each, which is good. If I add either 1 css or 1 js file
in the view I get the same result of 1 compressed file of each but as soon
as there is both additional css and js I get 4 files. Never 3...always 2 or
4
I like the css and js compression / combination and the simplicity of the
plugin but if anyone knows of another that does the same thing and allows it
to work as I need please let me know.
Thanks all :)
K
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php