0
我正在使用带Applcation和User模块的ZF3。 Application模块是默认加载的模块,它包含我的索引页作为欢迎页面,没有登录信息。用户模块具有登录页面和所有用户身份验证内容。ZF3重定向到另一个模块中的另一个控制器acton
我需要在我的应用程序modula index action页面中放置一个按钮,以重定向到用户模块索引页面的登录页面。
我试图使用this post的答案,但它没有看到工作。
<p>
<a class="btn btn-default" href="
<?= $this->getHelper(redirector)->gotoSimple('index', 'index', 'user'); ?>">
Other module index action
</a>
</p>
这是导致以下错误:
的Zend \的ServiceManager \异常\ ServiceNotFoundException的
文件:
/path/to/project/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php 133
消息:
A plugin by the name "getHelper" was not found in the plugin manager Zend\View\HelperPluginManager
我该如何重定向到使用ZF3的另一个模块的动作?
对我清楚。谢谢。 – Mendes