You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tons of things require putting scripts into the footer. As it stands, this cannot be achieved unless using a vQmod, which turns footer into an inconsistent pile o scripts that are inserted too early (often before <?php echo $footer; ?> which is the wrong spot). Instead it would be nice to be able to insert via controllers just like the other $this->document methods. Adding would be simple:
public function addScriptFooter($script_footer) {
$this->scripts_footer[md5($script_footer)] = $script_footer;
}
public function getScriptsFooter() {
return $this->scripts_footer;
}
Easily defined in footer.php to be called in footer.tpl right before the closing </body>. Again, sorry if its the wrong place, its just a suggestion for an uber useful method.
The text was updated successfully, but these errors were encountered:
dhaupin
changed the title
$this->document-addScriptFooter()
$this->document->addScriptFooter()
Jun 5, 2015
Tons of things require putting scripts into the footer. As it stands, this cannot be achieved unless using a vQmod, which turns footer into an inconsistent pile o scripts that are inserted too early (often before
<?php echo $footer; ?>
which is the wrong spot). Instead it would be nice to be able to insert via controllers just like the other $this->document methods. Adding would be simple:Easily defined in footer.php to be called in footer.tpl right before the closing
</body>
. Again, sorry if its the wrong place, its just a suggestion for an uber useful method.The text was updated successfully, but these errors were encountered: