Hi. flashSession is not working in Microframewok? Nothing displays...
services.php
$di->setShared('flashSession', function(){
return new \Phalcon\Flash\Session(array(
'error' => 'alert alert-danger',
'success' => 'alert alert-success',
'notice' => 'alert alert-info',
'warning' => 'alert alert-warning',
));
});
index.php
$app = new Phalcon\Mvc\Micro($di);
$app->get('/', function () use ($app, $config) {
$app->flashSession->error('Заполните форму');
$app->flashSession->output();
exit;
});