Thinkphp obtains the default configuration file config in the conf folder. in php, I still have a configuration file history_config.php in the conf folder. like php, returnarray thinkphp obtains the configuration file.
The default configuration file is config in the conf folder. in php, I still have a configuration file history_config.php in the conf folder. like php, return array ();
How can I get the value in history_config.php?
------ Solution --------------------
$ Xxx = include_once ("Conf/history_config.php ");
------ Solution --------------------
Include it and call it the same way.
------ Solution --------------------
Include_once (APP_PATH. "Conf/history_config.php ");
Thinkphp provides the ability to load extended configuration files.
See "3.8 Extension configuration" in the development manual
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