Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Settings CSS classes for a session flash message?

How to set the CSS styles for a message set with $this->flashSession->success as it showed only how to do it for Implicit Flush flashes in the docs. :)

$di->set('flashSession', function(){
    $flash = new \Phalcon\Flash\Session(array(
        'error' => 'alert alert-danger',
        'success' => 'alert alert-success',
        'notice' => 'alert alert-info',
    return $flash;