因此,在访问模块时,我通常使用自定义操作帮助程序中的“url”操作帮助程序没有问题,使用以下命令:
$urlHelper = Zend_Controller_Action_HelperBroker::getExistingHelper('url');
但是如果访问默认模块(根url,/)会出现以下错误:
致命错误:在 /home/erahhal/Code/ZendFramework-1.11.12/library/Zend/Controller/Plugin/Broker.php 中,未捕获的异常 'Zend_Controller_Action_Exception' 带有消息 'Action helper "Url" has not been registered with the helper broker'在第 336 行
这个问题的根源是什么?