PHP code example of geniv / nette-flash-message
1. Go to this page and download the library: Download geniv/nette-flash-message 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/ */
geniv / nette-flash-message example snippets
protected function createComponentFlashMessage(IFlashMessage $flashMessage): IFlashMessage
{
// $flashMessage->setTemplatePath(__DIR__ . '/templates/FlashMessage.latte');
// $flashMessage->setAliasType(['danger' => 'error',]);
return $flashMessage;
}
$this['flashMessage']->redraw();
$this['flashMessage']->redraw($fallBack = 'this');
json
"php": ">=7.0",
"nette/nette": ">=2.4",
"geniv/nette-general-form": ">=1.0"