Skip to content


Various helpers we use within IXP Manager.


To show Bootstrap-styled alerts on view (Foil) templates, add them in your controllers as follows:

    use IXP\Utils\View\Alert\Container as AlertContainer;
    use IXP\Utils\View\Alert\Alert;


    AlertContainer::push( '<b>Example:</b> This is a success alert!, Alert::SUCCESS );

where the types available are: SUCCESS, INFO (default), DANGER, WARNING.

To then display (all) the alerts, in your foil template add:

<?= $t->alerts() ?>

These alerts are HTML-safe as they display the message using HTML Purifier's ''clean()''.

Last update: March 25, 2017