A little problem with thinkphp

Source: Internet
Author: User

The admin in this:: In which file is defined?


Reply to discussion (solution)

From the writing point of view, the admin should be a class. The U method is his method of fetching the URL believe you should know, is in no way, you can output it in action.

By convention
The admin class is defined in the portal file admin.php of the Admin group.

No definition file found.

So you're looking at someone else's code?

Yes, in learning, one may be defined in alias.php, one defined in config.php, and another convention. PHP definition, but none of the three files ... Where else could it be defined?

Search All files for "class admin"

What do you think of the backstage directory?
Home/admin/index
This could be the home module under Action=admin method=index

Found, which is defined by this file: ' Tmpl_l_delim ' = ' {admin: ',//template engine plain tag start tag

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