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

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

WBOY
Release: 2016-06-13 12:31:03
Original
1017 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template