Jump to content

Possible To Pass In External Constant File To Templates?


Recommended Posts

Posted

I've been customizing the templates files (header/footer) by making a new template etc but I need to pass in some constants that contain the root url to our site - is there a way to make data available to the template files? If so, how?

Posted

if you want to pass a extra vars to the template files is not possible ...

but you can change the template files directly ... this thread can give you some how the template work

http://www.blesta.com/forums/index.php?/topic/2992-call-function-from-template-file/?hl=template#entry21493

http://www.blesta.com/forums/index.php?/topic/3210-displaying-custom-field-information/?hl=template

Posted

Well as like you in that thread I don't want to hack the core files nor do anything outside the MVC scope; I can hard code the data but I really don't want to do that as that means I would have to have 3 separate files for dev, staging and production. :(

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...