I. variable output, Focus 1. scalar output: {$ name} 2. array output {$ name [0]} {$ name [& amp; #39; k2 & amp; #39;]} {$ name. k1} 3. object output {$ name: k} // call the member attribute K of this object...
I. variable output, focus
1. scalar output: {$ name}
2. array output
- {$ Name [0]}
- {$ Name ['K2']}
- {$ Name. k1}
3. object output
- {$ Name: k} // call the member attribute K of this object
- {$ Name-> k} // call the K method
II. system variables
{$ Think. get. id} // call the system variable in the template to obtain the provided id value.
3. use functions
The compiled file {$ name | strtoupper} is
{$ Name | date = 'Y m d H: I: S', ###} // All # indicates the point, representing the previous variable $ name
IV. default value
{$ Name | default = 'default here '} // use the default value if the value does not exist
5. Operators
- +-*/% + + --
- {$ Name + 1}