Is there a out of the box way of loading certain javascripts in the footer of a view script?
This would be particularly useful for such scripts like google analytics, etc.
Or would this require extending $this->headScript() and creating a $this->footScript() ?
use a placeholder in your layout like
$this->layout()->footScriptand then attach the code you want to the placeholder.Or you could just use the inlineScript() Helper. The inlineScript helper has the same api is headScript().
The optimum would probably be to use the layout placeholder along with the inlineScript helper.
An Example of the inlineScript helper:
Use something like this with a placeholder and you have javascript anywhere.