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!
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!
not sure what you're doing, but you could inject the code into the footer via javascript?
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.
Similar to an analytics thing, but it's php not JS, and involved a DB insert.
maybe there's a concrete event that's fired after the page loads?