• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Custom Variables?

#1
I was wondering how i'd pass custom variables on to a template and load them in the template, i'm assuming loading them in the template will be something like {$custom.ver} or something. I was just wondering how to do it PHP side, the variable will be dynamic and be defined in the code when it runs.
 

Jeremy

Well-known member
#2
You'll need to extend the controller that utilizes the templates and add them into the viewParams. This can be done via the class proxy system, but needs to be done via PHP.
 
#3
You'll need to extend the controller that utilizes the templates and add them into the viewParams. This can be done via the class proxy system, but needs to be done via PHP.
Thanks, i'll look into this now. Also is there any documentation? I'd love to have a read of it if there is.