Hi there,
we are Using:
- Phalcon 1.3.2
- Flash\Session
- Volt
- MultiModuleSetup
The following problem occurs:
We are generating errorMessages in a form with this code:
$this->flash->error($message);
The Form extends Phalcon\Forms\Form
Now in our index.volt-Template we have the output like this: {{ flash.output() }}
Flash is instantiated like this:
$di->set('flash', function() {
return new Flash(array(
'error' => 'alert alert-error',
'success' => 'alert alert-success',
'notice' => 'alert alert-info'
));
});
The errorMessage is shown and never removed. It always shows up again and more messages are cumulated so in short time the screen is full of messages. Are we missing something or is this a bug?
Thanks for help,
Björn