Hello,
I cannot manage to get the Flash component to use the css classes I send it in constructor
in my boostrap file I use the regular
$di->set('flash', function() {
$flash = new \Phalcon\Flash\Session(array(
'error' => 'alert alert-error',
'success' => 'alert alert-success',
'notice' => 'alert alert-info',
));
return $flash;
}
);
in controller :
$this->flash->success('Welcome')
And in my main view:
echo $this->flashSession->output();
but the generated html still use successMessage as the css class.
Am I missing a the point here ?
Thanks you in advance for any help :))
Emmanuel