A simple League Plates extension is bundled with the skeleton app. Any time you want to output a themed alert in your view, you can call it like a view helper.
The Alerts extension has 2 themes that match the layouts that come with Vespula slim mvc.
You can specify a theme at anytime by passing a theme as a second argument, but it's
recommended that you do it in your container where the alerts are defined.
See the dependencies file.
The alerts extension comes with the following themes: bootstrap, foundation.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php $mytheme = 'foundation'; echo $this->info('Some message'); echo $this->error('Some message', $mytheme); // Echo several at once $messages = [ 'error'=>[ 'Error one', 'Error two' ], 'info'=>[ 'Info one', 'Info two' ] ]; echo $this->alerts($messages);