2017 © Pedro Peláez
 

library flash

Plugin to display flash messages.

image

sh/flash

Plugin to display flash messages.

  • Sunday, April 26, 2015
  • by semirhuduti
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality Code Coverage, (*1)

FlashMessage

This module is used to display flash messages in your project., (*2)

To use this module the following code needs be added in the frotcontroller., (*3)

$di->setShared('flash', function() {
    $flash = new \Anax\FlashMessage\FlashMessage();
    return $flash;
});

If you want to keep the code consistent it also can be added in the CDIFactoryDefault that is located in src/DI. It should be added like this., (*4)

$this->setShared('flash', function() {
    $flash = new \Anax\FlashMessage\FlashMessage();
    return $flash;
});

To use the the flash messages add the following line to your project., (*5)

  $app->flash->message('information', 'This is a info message');
  $app->flash->message('warning', 'This is a warning message');
  $app->flash->message('success', 'This is a success message');
  $app->flash->message('error', 'This is a error message');

This will generate HTML-code that will be displayed in the view., (*6)

The style of the flash messages can be changed in the flash.css file., (*7)

The Versions

26/04 2015

dev-master

9999999-dev https://github.com/semirhuduti

Plugin to display flash messages.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

messages flash education

09/04 2015

v1.0

1.0.0.0 https://github.com/semirhuduti

Plugin to display flash messages.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

messages flash education