forked from SpoonX/SxBootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Alert
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);
?>
<?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);
?>