thinkphp ASSIGN label

ASSIGN label for the assignment variables in the template file, use the following:

Linear Motor Manufacturers

  1. <assign name="var" value="123" />

When running a template, assign a varvariable value 123.

The name attribute support system variables, such as:

  1. <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:

  1. <assign name="var" value="$val" />

Or directly assigned to the system variable var variables, for example:

  1. <assign name="var" value="$Think.get.name" />

Equivalent, carried out:$var = $_GET['name'];

Guess you like

Origin www.cnblogs.com/furuihua/p/11834338.html