ASSIGN label for the assignment variables in the template file, use the following:
<assign name="var" value="123" />
When running a template, assign a var
variable value 123
.
The name attribute support system variables, such as:
<assign name="Think.get.id" value="123" />
He said in a template to $_GET['id']
assign a 123
value property also supports variables, such as:
<assign name="var" value="$val" />
Or directly assigned to the system variable var variables, for example:
<assign name="var" value="$Think.get.name" />
Equivalent, carried out:$var = $_GET['name'];