我已经使用
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/"
加载了从 http://sourceforge.net/projects/wurfl/files/WURFL%20PHP/1.1/wurfl-php-1.1.tar.gz/download
版本1.3.1
Root_DIR/library/wurfl-php-1.3.1
并使用应用程序创建数据文件夹并使用 Root_DIR/data/wurfl 进行更新
/查切
web_browsers_patch.xml
wurfl.xml
我缺少什么?提前致谢。
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-start
but it shows me an exception Unable to resolve plugin "useragent"; no corresponding plugin with that name. My code is :
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/"
loaded the files at downloaded from http://sourceforge.net/projects/wurfl/files/WURFL%20PHP/1.1/wurfl-php-1.1.tar.gz/download
version 1.3.1
Root_DIR/library/wurfl-php-1.3.1
and created data folder with application and updated with Root_DIR/data/wurfl
/chache
web_browsers_patch.xml
wurfl.xml
What is i am mising ?? Thanks in advance.
发布评论
评论(2)
是因为版本问题。我在更新 zend 库版本后解决了这个问题。它支持 zend V 1.11 及更高版本。在成功实施之后,我仍然遇到如下异常:
严格标准: Application_Helper_MobileContext::addActionContext() 的声明应该与 /storage/projects/gomotive/application/helpers/MobileContext.php 第 3 行中的 Zend_Controller_Action_Helper_ContextSwitch::addActionContext() 的声明兼容
,但也通过传递默认参数值解决了这个问题在父方法中。检查下面的链接
方法声明应与父方法兼容PHP
It was due to version problem. i resolved it after updating version of zend library. it supports on zend V 1.11 and above. and after this successful implementation still i am getting an exception like :
Strict Standards: Declaration of Application_Helper_MobileContext::addActionContext() should be compatible with that of Zend_Controller_Action_Helper_ContextSwitch::addActionContext() in /storage/projects/gomotive/application/helpers/MobileContext.php on line 3
But also resolved this by passing default argument value in parent method. check the link below
Declaration of Methods should be Compatible with Parent Methods in PHP
您好,解决方案是将 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