I don't know if it's a bug, if I'm missing something or maybe it's a normal behavior...
If I try to output an element directly from a layout file, all the scripts linked in that element with echo $this->Html->script('script'), false) are not outputed in the layout file. No problem with inline = true.
If the same element is included in a view, all the scripts from the element are outputed in the layout with echo $this->fetch('script');
If the inline option is set to true, the scripts are outputed.
I tried the same thing in 2 different 2.3 projects, and the behavior is the same.
So basically the scripts from an element included directly in a layout are not outputed in the layout with $this->fetch('script');
If the same element is included in a view, no problem.
Thank you
-- Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment