我想在1 codeigniter应用程序下创建多个应用程序,但其中一些应用程序会共享相同的配置,如数据库配置。在codeigniter中的多个应用程序之间共享配置
-application
-config
-models
-project_1
-config
-controllers
-models
-project_2
-config
-controllers
是有可能加载应用程序文件夹的第一级上的配置,并查找应用程序级别的文件夹,如果配置文件不存在?我知道这是可能的,当我通过使用add_package_path()手动加载配置,但自动加载不起作用。
你有没有想过aboutlooked在环境? http://ellislab.com/codeigniter/user-guide/libraries/config.html http://ellislab.com/codeigniter/user-guide/general/environments.html – Rooneyl