我有我的视图助手Library/My/View/Helper/LoadSkin.php
,我在 application.ini 中添加了这一行:resources.view.helperPath.My_View_Helper = "My/View/Helper"
但我仍然得到
Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message
'Plugin by name 'LoadSkin' was not found in the registry; used paths: Zend_View_Helper_: Zend/View
/Helper/;C:/Program Files (x86)/Zend/Apache2/htdocs/TinOuzel/application/views\helpers/'
这看起来像 ZF Stills 在默认路径中寻找助手;/
我的namespacje在引导程序中注册:
protected function _initAutoloader ()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('My_');
$autoloader->suppressNotFoundWarnings(true);
return $autoloader;
}