I am trying to output flashSession on my view.
I am setting shared flashSession like this
$flashData = [
'error' => 'alert alert-danger',
'success' => 'alert alert-success',
'notice' => 'alert alert-info',
];
$flash = new \Phalcon\Flash\Session($flashData);
$di->setShared('flashSession', $flash);
but when I am trying to print this out in my view (I am using volt)
{{ flashSession.output() }}
which is then translated to
<?php echo $this->flashSession->output(); ?>
I am getting in logs that the flashSession in not defined. I have then decided that I can put into controller
$this->view->flashSession = $this->flashSession
but then I am getting 500 html error when trying to ouput and I am not getting any error. Doean anyone know what it can be?