简体   繁体   English

Zend Framework移动版

[英]Zend Framework mobile version

Hi i tried to convert my zend application to mobile version using Wurfl plugin causing error. 嗨,我尝试使用Wurfl插件将zend应用程序转换为移动版本,从而导致错误。 the errors that appear is: 出现的错误是:

Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Unable to resolve plugin "useragent"; 致命错误:未捕获的异常'Zend_Application_Bootstrap_Exception',消息为'无法解析插件“ useragent”; no corresponding plugin with that name' in /opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php:330 Stack trace: #0 /opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php(380): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResource('useragent') #1 /opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php(392): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResources() #2 /opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php(622): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResourceNames() #3 /opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php(583): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #4 /opt/zend/library/Zend/Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL) #5 /var/www/myapp/public/index.php(25): Zend_Application->bootstrap() #6 {main} thrown in /opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php on line 330 在/opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php:330中没有相应名称的插件''堆栈跟踪:#0 /opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php(380) :Zend_Application_Bootstrap_BootstrapAbstract-> getPluginResource('useragent')#1 /opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php(392):Zend_Application_Bootstrap_BootstrapAbstract-> getPluginResources()#2 / opt / Zend / library /Bootstrap/BootstrapAbstract.php(622):Zend_Application_Bootstrap_BootstrapAbstract-> getPluginResourceNames()#3 /opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php(583):Zend_Application_Bootstrap_BootstrapAbstract /> _ boot zend / library / Zend / Application.php(355):Zend_Application_Bootstrap_BootstrapAbstract-> bootstrap(NULL)#5 /var/www/myapp/public/index.php(25):Zend_Application-> bootstrap()#6 {主要}抛出在第330行的/opt/zend/library/Zend/Application/Bootstrap/BootstrapAbstract.php中

my application.ini config for wurfl is: 我对wurfl的application.ini配置为:

resources.useragent.wurflapi.wurfl_api_version = "1.1" resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl-php-1.1/WURFL/" resources.useragent.wurflapi.wurfl_config_file = APPLICATION_PATH "/configs/wurfl-config.php" resources.useragent.wurflapi.wurfl_api_version =“ 1.1” resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH“ /../library/wurfl-php-1.1/WURFL/” resources.useragent.wurflapi.wurfl_config_file = APPLICATION_PATH“ / configs / wurfl -config.php”

so confuse need help !!! 所以混淆需要帮助!

So you are getting this error - 'Unable to resolve plugin "useragent" Why don't you try out the solution mentioned in this question.. it also deals with this "useragent" plugin error - Exception while setting up the wurfl in zend 因此,您得到此错误-'无法解决插件“ useragent”为什么不尝试解决此问题中提到的解决方案..它也处理此“ useragent”插件错误- 在zend中设置wurfl时发生异常

take a look at this post too - Errors when implementing WURFL with Zend 也看一下这篇文章- 使用Zend实现WURFL时出错

I have given the steps implementing the mobile layout using zend in this link 我已经在此链接中给出了使用zend实现移动布局的步骤

Kindly check 好心检查

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM