【问题标题】:what's wrong with this zend framework error?这个 zend 框架错误有什么问题?
【发布时间】:2011-06-12 16:38:16
【问题描述】:

所以我在 Zend Framework 中遇到了这个错误:

Fatal error: Uncaught exception 
'Zend_Loader_PluginLoader_Exception' with message 
'Plugin by name 'FrontUIHelper' was not found in the registry; 
used paths: ZendX_JQuery_View_Helper_: ZendX/JQuery/View/Helper/ hlp_:
/home/public_html/application/views/helpers/ Zend_View_Helper_:
Zend/View/Helper/:./views/helpers/:/home/public_html/application/views/helpers/' 
in /home/public_html/library/Zend/Loader/PluginLoader.php:412 Stack trace: #0 
/home/public_html/library/Zend/View/Abstract.php(1170): 
Zend_Loader_PluginLoader->load('FrontUIHelper') #1 
/home/public_html/library/Zend/View/Abstract.php(610): 
Zend_View_Abstract->_getPlugin('helper', 'frontUIHelper') #2 
/home/public_html/library/Zend/View/Abstract.php(336): 
Zend_View_Abstract->getHelper('frontUIHelper') #3 
/home/public_html/application/layouts/layout.phtml(18): 
Zend_View_Abstract->__call('frontUIHelper', Array) #4 
/home/public_html/application/layouts/layout.phtml(18): 
Zend_View->frontUIHelper() #5 
/h in /home/public_html/library/Zend/Loader/PluginLoader.php  
on line 412

我做错了什么?如何解决这个问题?

提前致谢

【问题讨论】:

  • 添加一些关于如何添加/调用 Zend 库的代码也可能会有所帮助。您是否包含了 Zend 库的路径?

标签: php zend-framework exception


【解决方案1】:

这意味着没有这个类的文件。或者它不是这个文件中的类。检查名称。自动加载器是否包含在 index.php 中?您是否将 ZendX 命名空间添加到您的自动加载器? Zend Framework 自动加载器基于类名。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多