Hello everyone. I have a little problem with phalcon's flash messages. 1) I've set up flash in DI like so:
    $di->set('flash', function (){
      $flash = new \Phalcon\Flash\Session([
          //tie in with twitter bootstrap classes
          'error'     => 'alert alert-danger',
          'success'   => 'alert alert-success',
          'notice'    => 'alert alert-info',
          'warning'   => 'alert alert-warning'
      ]);
      return $flash;
    });
Then, I am making an redirect if user doesn't have a permission to access particular area.
    if ($allowed != Acl::ALLOW) {
            $this->flash->error("You do not have permission to access this area.");
            $this->response->redirect('site');
        }
And in my view template I try to ouput them like so:
{{ flash.output() }}
When I debugged my code I noticed that in my Permission class (where I handle ACL and redirect) after setting the message it exists, but when I go to a Site controller it dissapears even though it is set in a session. Whats the problem?