asset
asset copied to clipboard
can't add script after init
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>