thinkphp frame template variables and template output
thinkphp Framework template operation variable output:
{: function (...)} Execute method and output return value {~function} //Execute method does not output {@var}// output session variable {#var}//output cookie variable {&var}//Output config parameter {% var} //Output language variable {. var} //Output get variable {^var} //output post variable {*var} //Output constant
The template output//1 directly calls the default (index) Action template $this->display ();//corresponds to winxin/tpl/default/index/index.html//2 call the Test1 action template for the index module $ This->display (' test1 ');//The Mes Action template () that corresponds to winxin/tpl/default/index/test1.html//2 call Message module () $this->display (' Message:mes '),//Test2 action template for the Message module that corresponds to weixin/tpl/default/message/mes.html//3 call XP topic $this->display (' Xp@message:test2 ');//corresponds to weixin/tpl/xp/message/test2.html//4 directly specifies the full name of the template file $this->display ('.. /message/test3.html ');//Correspondence myapp/tpl/default/message/test3.html
http://www.bkjia.com/PHPjc/1061537.html www.bkjia.com true http://www.bkjia.com/PHPjc/1061537.html techarticle thinkphp Frame template variables and template output thinkphp Framework template action variable output: {: function ()}//Execute method and output return value {~function}//Execute method does not output {@var}//Output ...