2017 © Pedro Peláez
 

library flashmessage

Flashmessage for Anax MVC

image

pmn834/flashmessage

Flashmessage for Anax MVC

  • Wednesday, May 6, 2015
  • by pmn834
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

CFlashmessage

Flashmessage for Anax MVC, (*1)

Available at Packagist as flashmessage., (*2)

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

Using CFlashmessage

Copy the file flashmessage.css from the CFlashmessage/css folder to your Anax webroot/css folder. This stylesheet can then be added to your frontcontroller., (*4)

$app->theme->addStylesheet("css/flashmessage.css");

Add CFlashmessage as a service., (*5)

$di->setShared('flash', function() {
    $flashmessage = new \pmn834\CFlashmessage\CFlashmessage();
    return $flashmessage;
});

Start a session before using CFlashmessage., (*6)

$app->session();

One or more flashmessages can then be added., (*7)

$app->flash->info("Info flash message");
$app->flash->error("Error flash message");
$app->flash->success("Success flash message");
$app->flash->warning("Warning flash message");

To get all flashmessages as HTML use flash->output()., (*8)

$app->flash->output();

The CFlashmessage/webroot folder includes the frontcontroller flashtest.php to test the CFlashmessage service., (*9)

The Versions

06/05 2015

dev-master

9999999-dev http://dbwebb.se

Flashmessage for Anax MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Per Nilsson

mvc anax flashmessage flash

06/05 2015

v3.0

3.0.0.0 http://dbwebb.se

Flashmessage for Anax MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Per Nilsson

mvc anax flashmessage flash

06/05 2015

v2.0

2.0.0.0 http://dbwebb.se

Flashmessage for Anax MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Per Nilsson

mvc anax flashmessage flash

28/04 2015

v1.0

1.0.0.0 http://dbwebb.se

Flashmessage for Anax MVC

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Per Nilsson

mvc anax flashmessage flash