0

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.

4

2 回答 2

1

这是由于版本问题。我在更新 zend 库版本后解决了它。它支持 zend V 1.11 及更高版本。在这个成功的实现之后,我仍然得到一个异常:严格标准:Application_Helper_MobileContext::addActionContext() 的声明应该与 /storage/projects/gomotive/application/helpers/MobileContext 中的 Zend_Controller_Action_Helper_ContextSwitch::addActionContext() 的声明兼容。第 3 行的 php

但也通过在父方法中传递默认参数值来解决这个问题。检查下面的链接 声明方法应该与 PHP 中的父方法兼容

于 2012-02-28T13:26:18.600 回答
1

嗨,解决方案是将 Zend 框架包含到您的库文件夹中。我面临同样的问题,并且不小心将 Zend Framework v1.11 包含到库中并且一切正常

于 2012-07-05T04:49:28.170 回答