Jump to content

[Solved] Use module variable in a template


Mysterious Pilot

Recommended Posts

I am experimenting with the creation of custom add-on modules, at the moment without DB access. So I have a module PHP file that goes in modules/MODULE_NAME and the template file in the templates directory.

Now, on the module file I process all input parameters that may be given on the URL as well as predefined class variables. What if I want to access the value of one of those variables of the module file back in the template? For example if I defined "var $testMe = true" within the module class that extends Codeon, how would I go about accessing this variable value from my template (TPL) file?

Link to comment
Share on other sites

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.   Restore formatting

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