Functions:assign

From Dwoo Docs

Jump to: navigation, search

Assigns a value to a variable

assign(mixed $value, string $var)
  • value : the value that you want to save
  • var : the variable name (without the leading $)




Example :

{assign 'test string' myVar}
Variable contains: {$myVar}

Output:

Variable contains: test string

Note that this plugin was mostly provided for smarty compatibility, it is easier to do it with the = operator, just as in any language, using :

{$myVar='test string'}
Personal tools
templates
page language

French

The article you want to access doesn't exist in French.
Deutsch
The article you want to access doesn't exist in Deutsch.
Russian
The article you want to access doesn't exist in Russian.