$renderer = $sm->get('Zend\View\Renderer\RendererInterface'); $url = $renderer->basePath('/album/index/login'); return $this->redirect()->toUrl($url);
Above code work in controller but not in module.php -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/How-to-use-redirect-outside-controller-in-zend-2-tp4662425.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com