Basically,
<?php
$di->set('flash', function() {
        $flash = new \Phalcon\Flash\Session([
            'error' => 'alert alert-danger',
            'success' => 'alert alert-success',
            'notice' => 'alert alert-info',
        ]);
        return $flash;
    });Produces <div class="successMessage">The data saved with no errors.</div>
When I do:
<?php
if(empty($errors)){
            $this->view->disable();
            $this->flash->success('The data saved with no errors.');
            $this->response->redirect('dashboard/');
        }From my controller.
\Phalcon\Flash\Direct() Produces the expected html if I try it with a forward. Any ideas? It seems to be a common one but nothing I have read seems to answer what's actually going on.