Welcome Guest, Not a member yet? Register   Sign In
Global Variables in Templates
#1

[eluser]Lucas3677[/eluser]
I'm trying to implement simple global variables within my view files, so that when someone creates a template they can just type {site_owner} or {admin_email} and have it replaced by the correct value at run-time.

My first instinct tells me that I should create a hook at display_override and just replace the strings there. Is there a better way to do this?


Messages In This Thread
Global Variables in Templates - by El Forum - 05-25-2008, 12:32 PM
Global Variables in Templates - by El Forum - 05-25-2008, 01:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB