在 zend 中设置 wurfl 时出现异常

发布于 2024-12-28 18:10:18 字数 1090 浏览 2 评论 0 原文

我已经使用

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烙印 2025-01-04 18:10:18

是因为版本问题。我在更新 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

紫罗兰の梦幻 2025-01-04 18:10:18

您好,解决方案是将 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文