Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 21, 2018. It is now read-only.
/ flash Public archive

Library for storing and retrieving flash data & messages.

Notifications You must be signed in to change notification settings

joelvardy/flash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Flash Data / Messages Library

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

Coded by Joel Vardy.

Installation

Add the following to your composer.json require object:

"joelvardy/flash": "dev-master"

Usage

Data

Set data upon failure.

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

Read data to display on the front end:

$data = Flash::data();

Messages

Set an error message:

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

Read all flash messages:

$messages = Flash::message();

You may also be interested in my template library.

About

Library for storing and retrieving flash data & messages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages