<?php
// set the format of the flash messenger output to work for the Twitter Bootstrap theme.
$this->flashMessenger()
     ->setMessageOpenFormat(
        '<div%s>
        <button type="button" class="close" data-dismiss="alert"
            aria-hidden="true">&times;
        </button><ul><li>')
    ->setMessageSeparatorString('</li><li>')
    ->setMessageCloseString('</li></ul></div>');
?>

<?php if ($this->messages['info']): ?>
    <?php echo $this->flashMessenger()->render('info', array('alert', 'alert-dismissable', 'alert-info')); ?>
<?php endif; ?>

<?php if ($this->messages['error']): ?>
    <?php echo $this->flashMessenger()->render('error', array('alert', 'alert-dismissable', 'alert-danger')); ?>
<?php endif; ?>
<?php
// set the format of the flash messenger output to work for the Twitter Bootstrap theme.
$this->flashMessenger()
     ->setMessageOpenFormat(
        '<div%s>
        <button type="button" class="close" data-dismiss="alert"
            aria-hidden="true">&times;
        </button><ul><li>')
    ->setMessageSeparatorString('</li><li>')
    ->setMessageCloseString('</li></ul></div>');
?>

<?php if (array_key_exists('info', $this->messages) && $this->messages['info']): ?>
    <?php echo $this->flashMessenger()->render('info', array('alert', 'alert-dismissable', 'alert-info')); ?>
<?php endif; ?>

<?php if (array_key_exists('error', $this->messages) && $this->messages['error']): ?>
    <?php echo $this->flashMessenger()->render('error', array('alert', 'alert-dismissable', 'alert-danger')); ?>
<?php endif; ?>
Correct a minor bug in the flash messenger view template
Correct a minor bug in the flash messenger view template

There was no check for the existence of info or error in messages before
attempting to reference them, which can lead to an error.
