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? 呵呵 这个比较特殊,楼主看一下 user_agent 类库源码的 _load_agent_file 方法,这里是读取的 user_agents.php
很多问题都可以通过看源码得到答案。
页:
[1]