Afficher un message
Vieux 23/02/2006, 09h55   #1
Dep
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Special variables in function calls

I have a plugin function which produces some output.
In template it's called in a following way:

{my_function arg1="val1" arg2="val2"}

Is there any way to insert a value of, for example $smarty.get.my_var
for one of the arguments???
Lines below cause compiler error.

{my_function arg1="$smarty.get.my_var" arg2="val2"}
{my_function arg1="{$smarty.get.my_var}" arg2="val2"}

PS: I know that using directly request vars in templates is not a good
practice, but this is just an example

Dmitriy
  Réponse avec citation
 
Page generated in 0,04863 seconds with 9 queries