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. :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...