Home  >  Article  >  Backend Development  >  thinkphp 前台和后台公用的函数如何加载

thinkphp 前台和后台公用的函数如何加载

WBOY
WBOYOriginal
2016-06-13 11:42:59962browse

thinkphp 前台和后台公用的函数怎么加载?
用thinkphp建了一个网站,分前台和后台(项目没有分组),有两个入口,前台入口index.php 后台入口 admin.php

我想问一下,前台和后台公用的函数,应该如何加载,比如前台和后台都会用到时间函数,所有关于时间的函数都放在一个lib_time.php这个文件里, 怎么才能在系统运行时就加载这个文件,而不是用的时候才加载

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn