![]() |
how to "export" a variable to template?
hi,
generally i need answer for the question in the title :) here is my problem: in file showthread.php i set up a variable $threadBelongsToForumA. I dont know how to "export" this varialbe in order i can use "if conditional" syntax in SHOWTHREAD template: <if condition="$threadBelongsToForumA==1">....</if> my php and VB know-how is very limited, pls help. Thx a lot. |
Quote:
|
hi,
in file showthread.php |
If I am understanding your question correctly, if the file containing the variable is run, it should recognize it automatically. :)
ex: if you declare $hello = 'hello'; in showthread.php then putting $hello in a template will show $hello if the current file is showthread.php (or it is included). |
Quote:
|
All times are GMT. The time now is 07:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|