Add code to footer via package

Permalink
I'm working on a little package for C5 just for kicks. It requires adding a php include to the bottom of each file.

I'm guessing there is a function somewhere that would handle this, but I'm not sure what it is.

So, how do I add something into a package that once installed will be included at the end of each page?

Thanks!

StriderSEO
 
Tony replied on at Permalink Reply
Tony
not sure what you're doing, but you could inject the code into the footer via javascript?
StriderSEO replied on at Permalink Reply
StriderSEO
Sadly, no. It's a block of PHP that has to run on each page load.

Similar to an analytics thing, but it's php not JS, and involved a DB insert.
Tony replied on at Permalink Reply
Tony
maybe there's a concrete event that's fired after the page loads?