Hi there,
I have to share the same Javascripts and CSSs for various layouts so I
created an element called "css_js.ctp" and I call it in each layout
this way :
<head>
<?php echo $html->charset(); ?>
<title>
<?php __('title'); ?>
</title>
<meta name="Description" content="<?php __(''); ?>" />
<meta name="Keywords" content="<?php __(''); ?>" />
<?php echo $this->element("css_js"); ?>
</head>
The problem is that I now get this warning :
Notice (8): Undefined offset: 0 [/Users/thomas/Sites/Movyo/cake/cake/
libs/configure.php, line 1188]
I of course tried to put the "css_js.ctp" code directly in the <head>
tag instead of the element call, and I don't have the warning so the
problem really lies into the element call.
So my 2 questions are:
1) Does anybody know why I get such a warning?
2) Is there a more proper way to share CSSs and Javascripts in various
layout?
Thanks,
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