Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Flash Messenger Namespace Messages Return Nothing #7632

Closed
tomshaw opened this issue Sep 29, 2015 · 4 comments
Closed

Flash Messenger Namespace Messages Return Nothing #7632

tomshaw opened this issue Sep 29, 2015 · 4 comments
Labels

Comments

@tomshaw
Copy link
Contributor

tomshaw commented Sep 29, 2015

Login controller:

$this->flashMessenger()->addSuccessMessage('You have successfully logged in.');

Forwarded Index Controller.

no messages
$this->flashMessenger()->getSuccessMessages();

Below works without vital namespace information.

$this->flashMessenger()->addMessage('You have successfully logged in.');

Forwarded Index Controller.

$this->flashMessenger()->getMessages();
@mwillbanks
Copy link
Contributor

Hello @tomshaw I wanted to make sure I am understanding, you're stating that when you forward the controller (not redirect) that the flash messages are unavailable when using something like the addSuccessMessage vs. the addMessage. Is this a correct statement? The general case works properly but the specific case is not?

@tomshaw
Copy link
Contributor Author

tomshaw commented Oct 1, 2015

Ignore forward. Redirect after a successful login.

@tomshaw
Copy link
Contributor Author

tomshaw commented Oct 1, 2015

Using an ajax action I need not only the message but message type, error, success, info etc.

@GeeH
Copy link

GeeH commented Jun 28, 2016

This issue has been moved from the zendframework repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html
New issue can be found at: zendframework/zend-mvc#168

@GeeH GeeH closed this as completed Jun 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants