![]() |
constants in template?
Hello,
I want to integrate a constant (define()) in my template, how can I do that? Thanks |
Template are for html, if you want to use code/php, then you need to do so in a plugin.
|
you don't understand, I want my constant value in a template. I do not want to define the constant in the template.
|
I guess I don't understand. Maybe give an example of what you are using right now in your template and what the result is (either the error or an image of what you get).
|
You'll need to use a plugin to store the constant in a variable, as constants aren't parsed in templates.
ie: Code:
$thisscript = THIS_SCRIPT; |
Thanks :)
|
All times are GMT. The time now is 06:32 PM. |
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:
|