Custom Variables?

Hersheybar

New member
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.
 
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.
 
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.
 
Back
Top Bottom