thinkphp how the foreground and background common functions load

Source: Internet
Author: User
thinkphp how does the function of the foreground and background public load?
With thinkphp built a website, sub-foreground and backstage (item no group), there are two entrances, front entrance index.php backstage entrance admin.php

I would like to ask, foreground and background common functions, such as how to load, such as the foreground and background will use time function, all about the time function is placed in a lib_time.php this file, how to load the file when the system is running, not when the load

share to: more


------Solution--------------------
Usually the site has a config file, loaded on the inside can be
------Solution--------------------
Or you can write directly to the common.php file under the Cmmon folder
------Solution--------------------
Write the method directly in the common/commnet.php, the program runs, will automatically load this file, call, the direct method name can be.

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