I'd like to have the value of a query (SELECT...) or a function from within a template. Where's the best place for me to put it?
Should I put it in the .php file that calls the template? (I've seen some people put in their global include, but that is very wasteful of resources...)