Setting up one configuration file for CodeIgniter
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.
精彩评论