gutterboy Posted September 28, 2014 Report Posted September 28, 2014 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? Quote
Blesta Addons Posted September 28, 2014 Report Posted September 28, 2014 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 Quote
gutterboy Posted September 28, 2014 Author Report Posted September 28, 2014 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.