thinkphp 获取配置文件解决方法
thinkphp 获取配置文件
默认的配置文件在conf文件夹下的config.php中,我现在在conf文件夹下还有个配置文件history_config.php 这个文件的配置写法也跟config.php一样 是 return array();
现在我想获取history_config.php中的值 要怎么写呢?
------解决方案--------------------
$xxx = include_once("Conf/history_config.php");
------解决方案--------------------
包含它,一样调用呗
------解决方案--------------------
include_once(APP_PATH . "Conf/history_config.php");
thinkphp 已经提供了加载扩展配置文件的功能
见开发手册之 《3.8 扩展配置》

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
