Hello,
There seems like a bug in the FlashSession functionality in Phalcon 2.0.2. In an Authentication Controller, I used this line to set an error message when the authentication failed.
$this->flashSession->error('Could not login user');
The message is added to the session, but without a HTML element and CSS class. Below a var_dump from the getMessages() output.
$this->flashSession->getMessages()
This is the output with var_dump
array (size=1)
'error' =>
array (size=1)
0 => string 'Could not login user' (length=20)
This functionality is working properly for FlashDirect
$this->flash->error('Could not login user');
That line create this output
<div class="errorMessage">Could not login user</div>
I do not see what I'm doing wrong.