Doubts about variables and methods in the {{}} in HTML

Source: Internet
Author: User
I am a website art, used to learn some ASP. Now the company's website is PHP, and now I want to modify some of the features of the site, but the code in the HTML really makes me wonder, never touched this type before. The code is as follows:


{{include file= ' header.html '}}

{{if $cat. parentid>0}}

{{ffcategory catid= $cat. ParentID To=cate}}

{{Else}}

{{ffcategory catid= $cat. CatID to=cate}}

{{/if}}





{{Ffposition}}









    • Area:

      Default



      Yongning District



      Ching Xiu District



      Xingning District



      Liang Qing District

      Xixiang Tong District

      Jiangnan District

      Wuming County









{{ffpagelist field= "Jiaoling,address,price1,price2" To= "DataList" order= "' sort ' asc, ' create_time ' desc '}}



    • Under current conditions there is {{$datalist. Count}} to get a map of driving schools nearby >








      {{ffpagelist pagesize=9 to= "Newsdata" field= "ZHICHI,RENSHU,TGL" order= "' sort ' asc, ' create_time ' desc '}}

      {{foreach from= $newsdata. Info item=b Key=k}}





    • {{$b. Title}}

      {{$b. Description}}















      Support Campus



      {{$b. Zhichi}} Home





      Number of coaches



      {{$b. Renshu}}} name





      Pass Rate



      {{$b. tgl}}%







    • {{/foreach}}





{{$newsdata. Pages}}



{{include file= ' footer.html '}}




I want to know where $b is defined in {{}}. How and where did it come from, the whole code was not accounted for?


Reply to discussion (solution)

This is a template file, the user will be accessed by the corresponding PHP file read this template file, the {{...}} Replace with the corresponding PHP statement
{{...}} Objects and variables in PHP are replaced by the objects and variables defined in the

This is a template file, the user will be accessed by the corresponding PHP file read this template file, the {{...}} Replace with the corresponding PHP statement
{{...}} Objects and variables in PHP are replaced by the objects and variables defined in the


Can you see where the corresponding PHP files are?


This is a template file, the user will be accessed by the corresponding PHP file read this template file, the {{...}} Replace with the corresponding PHP statement
{{...}} Objects and variables in PHP are replaced by the objects and variables defined in the


Can you see where the corresponding PHP files are?


It is not visible from the template file where the corresponding PHP file is.

Typically, PHP files with the same name or file name as the template file are in another directory.

You include in the template file


You know who used the template.

This is the code in PHP, I give you the mobile PHP zone

Search the entire project keyword with software, thank you

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