An error occurred somewhere
This is a warning...
This is a second very interesting warning
Good Job :) You did it
I am some info message for you
Messages
The message helper Flash
is capable of handling multiple flash messages (of one kind).
Additionally, they now could be sorted by desired priority (instead of appearing at random).
You can customize the order with the order
config of the helper.
Auto-sorted example
The above output has the following code in the controller:$this->Flash->warning('This is a warning...');
$this->Flash->error('An error occurred somewhere');
$this->Flash->warning('This is a second very interesting warning');
$this->Flash->success('Good Job :) You did it');
$this->Flash->info('I am some info message for you');