PHP code example of zf-hipsters / bootstrap-flash-messenger

1. Go to this page and download the library: Download zf-hipsters/bootstrap-flash-messenger library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zf-hipsters / bootstrap-flash-messenger example snippets


"zf-hipsters/bootstrap-flash-messenger": ">=1.0"

$this->fm('You have been logged in.');
return $this->redirect()->toRoute('dashboard');

$this->fm('Your username and/or password were incorrect.', 'error');
return $this->redirect()->toRoute('authorize/login');

$this->fm('Something cool happened!', 'info');
return $this->redirect()->toRoute('home');

$this->fm('Careful! Something bad could happen!', 'warning');
return $this->redirect()->toRoute('dashboard');

<?=$this->fm()

<?=$this->fm('exciting_namespace')

<?=$this->fm(array('mynamespace1', 'mynamespace2'))

php ./composer.phar update