Skip to content

can't add script after init #9

@deubs

Description

@deubs

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions