Easily create a bootbox.js alert programatically using sessions
Easily create a bootbox.js alert programatically using sessions
Your controller
class PageController extends ContentController {
private static $extensions = [
Vulcan\BootboxAlert\Extensions\BootboxAlertExtension::class
];
}
In your global template (Page.ss):
$BootboxAlert
Placing this method in the template will allow the script to be added to the page requirements at the very end to ensure bootbox has been required.
Setting the alert
BootboxAlert::setAlert("Example message");
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem