Hi All,
I am using the phalcon flash messages to display notifications. I have the flash service registered in my application and the error messages display as soon as I do a redirect but there is no styling information.
Here is the code :
// registering the flash service
$di->set('flash', function () {
return new Flash(array(
'error' => 'alert alert-error',
'success' => 'alert alert-success',
'notice' => 'alert alert-info'
));
});
// using the redirect http method to display the error message on the controller
$this->flashSession->error("Wrong email/password");
return $this->response->redirect('login');
// code in view template
<!-- error messages -->
<div class="row">
<?php $this->flashSession->output(); ?>
</div>
This is what it produces on my view :
<div class="errorMessage">Wrong email/password combination</div>
As you can see there is no styling. I have the bootrap.css file loaded.
What am I doing wrong?
Thanks