2017 © Pedro Peláez
 

library flash

Library for storing and retrieving flash data / messages.

image

joelvardy/flash

Library for storing and retrieving flash data / messages.

  • Thursday, October 3, 2013
  • by joelvardy
  • Repository
  • 1 Watchers
  • 4 Stars
  • 5,603 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Flash Data / Messages Library

This is a simple library which has two static methods allowing you to get/set flash data or messages., (*1)

Coded by Joel Vardy., (*2)

Installation

Add the following to your composer.json require object:, (*3)

"joelvardy/flash": "dev-master"

Usage

Data

Set data upon failure., (*4)

Flash::data(array(
    'username' => $username,
    'email' => $email
));

Read data to display on the front end:, (*5)

$data = Flash::data();

Messages

Set an error message:, (*6)

Flash::message('error', 'You must enter a valid email address.');

Read all flash messages:, (*7)

$messages = Flash::message();

You may also be interested in my template library., (*8)

The Versions

03/10 2013

dev-master

9999999-dev https://github.com/joelvardy/flash

Library for storing and retrieving flash data / messages.

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

messages data flash