asset icon indicating copy to clipboard operation
asset copied to clipboard

can't add script after init

Open deubs opened this issue 13 years ago • 0 comments

If I try to add script after calling $asset->scripts_for_layout() the script won't be added.

ie. in my layout I echo the css file inside head tag and I add scripts later in body page. <html> <head> <?php echo $asset->scripts_for_layout('css');?> </head> <body> this element add scriptblocks to view <?php $this->element('banner');?>

<?php echo $asset->scripts_for_layout('codeblock');?> </body> </html>

deubs avatar Aug 26 '11 14:08 deubs