Skip to content
VMBindraban edited this page Mar 4, 2013 · 3 revisions

The SxBootstap alert view helper shows a alert made with the twitter bootstrap. The following syntax builds the alert.

<?php
echo $this->sxbAlert($string);
?>

Explicit usage

<?php

// additional parameters: isBlock and class
echo $this->sxbAlert('This is an alert', true, 'alert-warning');

// class types: info, error, success, warning
echo $this->sxbAlert()->success('This is an alert');

// explicit additional parameters: isBlock 
echo $this->sxbAlert()->warning('This is an alert', true);
?>
Clone this wiki locally