I´m using ZF3 with the Applcation and User modules. The Application module is the default loaded module that contains my index page as a welcome page with no login information. The User module has the login page and all the user authentication stuff.
I need to put a button in my application modula index action page to redirect to the login page at user module index page.
I´m trying to use the answer from this post but it does not seen to work.
<p>
<a class="btn btn-default" href="
<?= $this->getHelper(redirector)->gotoSimple('index', 'index', 'user'); ?>">
Other module index action
</a>
</p>
This is leading to the following error:
Zend\ServiceManager\Exception\ServiceNotFoundException
File:
/path/to/project/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php 133
Message:
A plugin by the name "getHelper" was not found in the plugin manager Zend\View\HelperPluginManager
How should I redirect to an action of another module using ZF3 ?