问题描述
使用
但它显示了一个异常无法解析插件 useragent;没有相应名称的插件。我的代码是:
I have includes all the parameters using the article at http://framework.zend.com/manual/en/zend.http.user-agent.html#zend.http.user-agent.quick-startbut it shows me an exception Unable to resolve plugin "useragent"; no corresponding plugin with that name. My code is :
application.ini中的所有配置
all configuration in application.ini
resources.useragent.storage.adapter = "Session"
resources.useragent.wurflapi.wurfl_api_version = "1.3.1"
resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl-php-1.3.1/WURFL/"
resources.useragent.wurflapi.wurfl_config_array.wurfl.main-file = APPLICATION_PATH "/../data/wurfl/wurfl.xml"
resources.useragent.wurflapi.wurfl_config_array.wurfl.patches[] = APPLICATION_PATH "/../data/wurfl/web_browsers_patch.xml"
resources.useragent.wurflapi.wurfl_config_array.persistence.provider = "file"
resources.useragent.wurflapi.wurfl_config_array.persistence.dir.dir = APPLICATION_PATH "/../data/wurfl/cache/"
加载了从
版本1.3.1
Root_DIR / library / wurfl-php-1.3.1
loaded the files at downloaded from http://sourceforge.net/projects/wurfl/files/WURFL%20PHP/1.1/wurfl-php-1.1.tar.gz/downloadversion 1.3.1 Root_DIR/library/wurfl-php-1.3.1
使用应用程序创建数据文件夹,并使用Root_DIR / data / wurfl
/ chache
web_browsers_patch.xml
wurfl.xml
and created data folder with application and updated with Root_DIR/data/wurfl /chache web_browsers_patch.xml wurfl.xml
我在想什么?
推荐答案
您好,解决方案是将Zend框架包含到您的库文件夹中。我将Zend Framework v1.11包含在库中,并且一切正常
Hi the solutions is include Zend framework into your library folder.I am facing the same problems and by accidentally i include the Zend Framework v1.11 into library and all works well
这篇关于在zend中设置wurfl时发生异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!