Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Allow plugins to set message when success is false
- Loading branch information
1 parent
31590f2
commit ef2957b
Showing
1 changed file
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ef2957b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, attention with App()->user->setFlash : it allow only one flashMessage of each type. Then you can loose information.
It's the reason why App()->setFlashMessage was added : to allow to show multiple flasj message of same and different type.
There are discussion about this in Yii : http://www.yiiframework.com/wiki/111/using-setflash-for-displaying-various-kind-of-messages/ . And bootstrap include an extension for this (follow links on previous link)
PS : ee7e746 : adding core function here : multiple error aren't show before (or break DB save)