Thinkphp _ template operation. Quick output variable {: function ()} execution method and output return value {~ Function} does not output {@ var} output Session variable {# var} output Cookie variable {var} saved output variable
{: Function (...)} // Execute the method and output the returned value {~ Function} // the execution method does not output {@ var} // The output Session variable {# var} // The output Cookie variable {& var} // The output configuration parameter {% var }/ /output language variable {. var} // output GET variable {^ var} // output POST variable {* var} // output constant
Template output
// 1 directly call the index operation template $ this-> display (); // corresponding to Myapp/Tpl/default/Index/index.html // 2 call the test1 operation template of the Index module $ this-> display ('test1 '); // corresponding to Myapp/Tpl/default/Index/test1.html // 2 call the test2 operation template of the Message module () $ this-> display ('Message: test2 '); // corresponding to Myapp/Tpl/default/Message/test2.html // 3 call the test2 operation template of the Message module of the XP topic $ this-> display ('XP @ Message: test2 '); // specify the full name of the template file $ this-> display ('.. /Message/test3.html '); // corresponding to Myapp/Tpl/default/Message/test3.html
Else {: function ()} // executes the method and outputs the returned value {~ Function} // the execution method does not output {@ var} // The output Session variable {# var} // The output Cookie variable {var }//...