PHP code example of montikids / module-message-popup

1. Go to this page and download the library: Download montikids/module-message-popup 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/ */

    

montikids / module-message-popup example snippets


// ...
use Montikids\MessagePopup\Model\Manager\PopupMessageProxy;

// ...
public function __construct(
    // ...
    PopupMessageProxy $messageManager,
) {
    // ...
    $this->messageManager = $messageManager;
}

$this->messageManager->addSuccessMessage(__("You're awesome!"));