0

我尝试使用后端和前端创建应用程序。文件夹结构如下(只显示配置文件位置来说明问题)

+root
|-admin
|-application
  |—backend
    |—config
      |—config.php
  |—frontend
    |—config 
      |—config.php
|-system

使用后端管理面板,我尝试更改后端和前端 config.php 值中的配置值。但我无法在前端 config.php 文件中更改它。我不需要基于数据库的解决方案。

4

1 回答 1

1

阅读文档我得到了这个:

Note: CodeIgniter always tries to load the configuration files for the current environment first. If the file does not exist, the global config file (i.e., the one in application/config/) is loaded. This means you are not obligated to place all of your configuration files in an environment folder − only the files that change per environment.

因此,基于这些信息,我认为问题出在您何时调用它,可能是您的路径有问题。

于 2012-06-12T21:49:55.110 回答