thinkphp Framework template variables and template output _php tutorial

Source: Internet
Author: User

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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.