|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
scdgro Smarty Regular
Joined: 24 May 2003 Posts: 39 Location: Netherlands
|
Posted: Sun May 25, 2003 9:40 pm Post subject: use defined variable in template |
|
|
Ok, another question.
I have in my code
define('foo',1);
Is it possible to parse this foo directly in my template, without the assign method.
As if it were a $_SERVER variable.
eg.
$PHP_SELF is called with $smarty.server.PHP_SELF
in this case something like this
$smarty.defined.foo |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Sun May 25, 2003 10:52 pm Post subject: Re: use defined variable in template |
|
|
scdgro wrote: |
in this case something like this
$smarty.defined.foo |
yep, in your case: $smarty.const.foo |
|
Back to top |
|
macleo Smarty Rookie
Joined: 22 May 2003 Posts: 9 Location: Tokyo,Japan
|
|
Back to top |
|
Justin Smarty Regular
Joined: 07 May 2003 Posts: 38 Location: Vilnius, Lithuania
|
Posted: Mon May 26, 2003 10:54 am Post subject: Re: what is foo?? |
|
|
macleo wrote: | a variable ?
what is it mean?
like $set_file? |
yes yes _________________ http://www.baubas.net |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|