Skip to content

can't add script after init #9

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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