src/View/Helper/Alert.php
public function render($type = null, $content = true, array $options = array())
    {
        if (is_array($type)) {
            $options = $type;
            $type    = self::TYPE_INFO;
            $content = true;
        } elseif (is_array($content)) {
            $options = $content;
            $content = true;
        }

        if (true === $content) {
            return $this->start($type, $options);
        }

        $id    = isset($options['id']) ? ' id="' . $options['id'] . '"' : '';
        $class = isset($options['class']) ? ' ' . $options['class'] : '';
        if ((isset($options['dismissable']) && $options['dismissable'])
            || !isset($options['dismissable'])
        ) {
            $class .= ' alert-dismissable';
            $content = '<button type="button" class="close" data-dismiss="alert">&times;</button>'
                     . '<span class="notification-content">' . $content . '</span>';
        }

        $target = array_key_exists('target', $options)?' target="' . $options['target'] . '"':'';
        $markup = '<div ' . $id . ' class="alert alert-' . $type . $class . '" ' . $target . '>' . $content . '</div>' . PHP_EOL;
        return $markup;
    }
public function render($type = null, $content = true, array $options = array())
    {
        if (is_array($type)) {
            $options = $type;
            $type    = self::TYPE_INFO;
            $content = true;
        } elseif (is_array($content)) {
            $options = $content;
            $content = true;
        }

        if (true === $content) {
            return $this->start($type, $options);
        }

        $id    = isset($options['id']) ? ' id="' . $options['id'] . '"' : '';
        $class = isset($options['class']) ? ' ' . $options['class'] : '';
        if ((isset($options['dismissable']) && $options['dismissable'])
            || !isset($options['dismissable'])
        ) {
            $class .= ' alert-dismissable';
            $content = '<button type="button" class="close" data-dismiss="alert">&times;</button>'
                     . '<span class="notification-content">' . $content . '</span>';
        }

        $target = array_key_exists('target', $options)?' target="' . $options['target'] . '"':'';
        $markup = '<div ' . $id . ' class="alert alert-' . $type . $class . '" ' . $target . '>' . $content . '</div>' . PHP_EOL;
        return $markup;
    }
Renders an alert box.

if <i>TRUE</i> is passed with <b>$content</b>, a capture process is started.
if <b>$type</b> is null, return this instance.
if <b>$content</b> is true or not passed, starts a capture process.
Following options are recognized:
- "id":           sets an id to the alert div
- "class":        String appended to the class-Attribute
- "dismissable":  Boolean value wether the alert will be dismissable or not.

@param array|string|null $type
@param array|string|bool $content
@param array             $options Additional options array

@return string|null
@uses start()