Thinkphp introduces the label of the file

Source: Internet
Author: User
Tags header include resource
The following is a summary of the tagging of thinkphp introduced files 1,include tags ① only explain static HTML files, and not directly include HTML file, it contains a static file must be located under the current Web site, cannot be a URL, the file is a complete file path, Usually from the entry file. //Represents the head action containing the current controller //If the head action is not under the current controller, you need to use: separator. ③ can pass additional variable parameters to the target page, which are interpreted as PHP variables by the template engine, which can be paired with [] in the target page head.html file. 2,import Tags: targeted, most commonly used to refer to JS or CSS files. Import a public static resource file in a Web site as a package ① specifies the type of the import file by type, so the file does not need a suffix name ② explain the path: use the. instead/default path to start with. ③ supports importing multiple files at once, separated by commas. 3,load Tags: import a third-party Web site or use an explicit path resource file. Use the method with import Advantages: Improved development efficiency Disadvantage: Too many labels on the page are used together and need to be sacrificed at run rate.

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.