helpers/Alert.php
public static function alert($content, $htmlOptions = array(), $close = '&times')
    {
        ArrayHelper::addValue('class', 'alert-box', $htmlOptions);

        ob_start();
        echo '<div data-alert ' . \CHtml::renderAttributes($htmlOptions) . '>';
        echo $content;
        if ($close !== false)
            echo static::closeLink($close);
        echo '</div>';
        return ob_get_clean();
    }
public static function alert($content, $htmlOptions = array(), $close = '&times')
    {
        ArrayHelper::addValue('class', 'alert-box', $htmlOptions);

        ob_start();
        echo '<div data-alert ' . \CHtml::renderAttributes($htmlOptions) . '>';
        echo $content;
        if ($close !== false)
            echo static::closeLink($close);
        echo '</div>';
        return ob_get_clean();
    }
public static function alert ( $ content , $ htmlOptions = array ( ) , $ close = '&times' ) { ArrayHelper :: addValue ( 'class' , 'alert-box' , $ htmlOptions ) ; ob_start ( ) ; echo '<div data-alert ' . \ CHtml :: renderAttributes ( $ htmlOptions ) . '>' ; echo $ content ; if ( $ close !== false ) echo static :: closeLink ( $ close ) ; echo '</div>' ; return ob_get_clean ( ) ; }
Returns an alert box

@param string $content the text within the alert box
@param array $htmlOptions the HTML attributes of the alert box
@param string $close the label for the close button. Set to false if you don't wish to display it.
@return string the alert box
@see http://foundation.zurb.com/docs/components/alert-boxes.html
Returns an alert box