sink.cup 发表于 2010-8-6 18:13:35

application/config/user_agents.php应该为user_agent.php?

用户代理名称的定义,位于一个配置文件: application/config/user_agents.php. 如果你需要你可以添加项目到user agent数组

你也可以传递存于配置文件中的参数.你只需简单的建立一个与 类文件名相同的config文件,并保存在 application/config/ 文件夹中.

application/config/user_agents.php应该为user_agent.php?

Hex 发表于 2010-8-6 22:47:51

呵呵 这个比较特殊,楼主看一下 user_agent 类库源码的 _load_agent_file 方法,这里是读取的 user_agents.php

很多问题都可以通过看源码得到答案。
页: [1]
查看完整版本: application/config/user_agents.php应该为user_agent.php?