开发者

Setting up one configuration file for CodeIgniter

开发者 https://www.devze.com 2022-12-08 20:16 出处:网络
I\'m building an app with CodeIgniter. My question is how do you combine the database config with a site wide config file? I want to have the config file based outside the ap开发者_JAVA百科plication d

I'm building an app with CodeIgniter. My question is how do you combine the database config with a site wide config file? I want to have the config file based outside the ap开发者_JAVA百科plication directory so that users will only need to modify one file without digging around inside the application directory.


You could use a standard php include() to have the global config included within any one of the application's config files.

0

精彩评论

暂无评论...
验证码 换一张
取 消