我正在尝试使用$ this-> _forward($ action,$ controller);在我看来,但我收到了这个错误:
Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name '_forward' was not found in the registry; used paths: Zend_View_Helper_: Zend/View/Helper/;C:/Program Files (x86)/Zend/Apache2/htdocs/dentallab/application/modules/default/views\helpers/' in C:\Program Files (x86)\Zend\ZendServer\data\libraries\Zend_Framework_1\1.12.3\library\Zend\Loader\PluginLoader.php:412
Stack trace:
#0 C:\Program Files (x86)\Zend\ZendServer\data\libraries\Zend_Framework_1\1.12.3\library\Zend\View\Abstract.php(1182): Zend_Loader_PluginLoader->load('_forward')
#1 C:\Program Files (x86)\Zend\ZendServer\data\libraries\Zend_Framework_1\1.12.3\library\Zend\View\Abstract.php(618): Zend_View_Abstract->_getPlugin('helper', '_forward')
#2 C:\Program Files (x86)\Zend\ZendServer\data\libraries\Zend_Framework_1\1.12.3\library\Zend\View\Abstract.php(344): Zend_View_Abstract->getHelper('_forward')
#3 C:\Program Files (x86)\Zend\Apache2\htdocs\dentallab\application\modules\default\views\scripts\institucional\index.phtml in C:\Program Files (x86)\Zend\ZendServer\data\libraries\Zend_Framework_1\1.12.3\library\Zend\Controller\Plugin\Broker.php on line 336
如果有人可以帮助我,我很感激!
答案 0 :(得分:3)
您可以在这种情况下使用Action View Helper
在视图中,
<?php echo $this->action('action',
'controller',
'module',
array('param' => 10)); ?>
以下是ZF手册Action View Helper
的链接