问一下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. user_agents.php 文件不是 config 文件,虽然在 config 目录下,但这是系统文件,系统自有他用。 其实 错误提示已经说的很明白了 装个翻译软件吧
唉 早知道好好学英语了... $autoload['config'] = array('config1', 'config2');
文件有提示 thanx~。解决了
页:
[1]