It depends on where you try to use the $scripts_for_layout to include a script from. You can't use it from the layout or elements included from the layout (because $scripts_for_layout has already been printed out). So in those cases, your best bet is just to hard code it into the document head.
On Jun 15, 1:45 am, Ragnis <[email protected]> wrote: > In my header i have <?php echo $scripts_for_layout; ?> > > But when i try to use this, then the script tag doesn't appear in the > header: > <?php echo $this->Html->script('general', array('inline' => false)); ?> 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
