PHP code example of heimrichhannot / contao-status_messages

1. Go to this page and download the library: Download heimrichhannot/contao-status_messages 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/ */

    

heimrichhannot / contao-status_messages example snippets


 echo \HeimrichHannot\StatusMessages\StatusMessage::generate($this->id); 

StatusMessage::addError('An error has happened', $this->id);