Thinkphp three mistakes when adding a template

Source: Internet
Author: User

Error one: Low-level error, will n to see m,1

Figure 1

It took me almost 2 hours to get this wrong. Swept the code several times with it, the internet looked better.

Error Two: This is a low-energy high-level error. Effect of specific template display 2

Figure 2

As long as the relative address and absolute address to find the right, but I have set up, it feels like the constant did not take effect, the result is like 2. My constant setting 3

The portal file defines constants and templates to refer to again

Constants are referenced in the template

The problem lies in:

Configuration of my virtual address

It's gone to the go directory, but I set the path more when I set a constant, resulting in a path error. should be as follows

Error three: Almost forgot to write, in which constants are referenced in the template should be written as {$Think. Const. Constant name} I wrote {$ThinkPHP. Const. Constant name}

Thinkphp three mistakes when adding a template

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.