pillar 发表于 2008-10-22 15:01:07

问一下autoload.php的问题

/*
| -------------------------------------------------------------------
|Auto-load Config files
| -------------------------------------------------------------------
| Prototype:
|
|      $autoload['config'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files.Otherwise, leave it blank.
|
*/
$autoload['config'] = array('user_agents');

当加载user_agents.php这个文件的时候,CI总是报错。user_agents.php是CI自带的,并没有改过。把这个文件的内容情况了,错误依旧。这是什么问题?

错误信息:

An Error Was Encountered

Your user_agents.php file does not appear to contain a valid configuration array.

Hex 发表于 2008-10-22 15:20:14

user_agents.php 文件不是 config 文件,虽然在 config 目录下,但这是系统文件,系统自有他用。

yz20sui 发表于 2008-10-22 21:47:41

其实 错误提示已经说的很明白了 装个翻译软件吧

唉 早知道好好学英语了...

sam 发表于 2008-10-22 22:42:53

$autoload['config'] = array('config1', 'config2');
文件有提示

pillar 发表于 2008-10-23 14:44:55

thanx~。解决了
页: [1]
查看完整版本: 问一下autoload.php的问题