-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zend\View\Helper\FlashMessenger isn't compatible with Expressive #8
Comments
@popovserhii Have you seen https://github.com/zendframework/zend-expressive-flash ? Originally posted by @michalbundyra at zendframework/zend-view#151 (comment) |
@webimpress Yes, but this module isn't working correctly. Аfter But even if Originally posted by @popovserhii at zendframework/zend-view#151 (comment) |
the Originally posted by @samsonasik at zendframework/zend-view#151 (comment) |
There is mezzio-flash for that https://github.com/mezzio/mezzio-flash . You can create a view helper to retrieve it. I'm closing it. |
I think you missed the reason of this feature request: the view helper should come from the framework. It is very annoying that I have to create it myself in every application.
Please do not close issue reports if there are added to active projects. Thanks! |
@froschdesign ah, ok, just see the label, thank you ;) |
@samsonasik There is a good chance that the helper is not added to this component but the basic problem must be tracked and solved. The same problem affects the |
In our project, we use
Zend\Expressive
as core andZend\View
as template engine. And we come across with an issue thatFlashMessenger
only works withZend\Mvc\Controller\Plugin\FlashMessenger
orZend\Mvc\Plugin\FlashMessenger\FlashMessenger
. None of them is available in Expressive and add dependencies onZend\Mvc
isn't a good idea.There are different Flash implementations and will be great that
Zend\View\Helper\FlashMessenger
depend on someFlashInterface
instead ofZend\Mvc\Plugin\FlashMessenger\FlashMessenger
. This feature will allow integratingZend\View\Helper\FlashMessenger
with many Flash Messanger libraries.I've written a module for this but for now
FlashInterface
is dirty and require improvement.Originally posted by @popovserhii at zendframework/zend-view#151
The text was updated successfully, but these errors were encountered: