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.