dalle/cflash

There is no license information available for the latest version (dev-master) of this package.

PHP classes for database handling upon PDO

dev-master 2014-11-24 20:25 UTC

This package is not auto-updated.

Last update: 2025-06-17 06:46:29 UTC


README

Build Status Scrutinizer Code Quality Code Coverage

The cflash class will be loaded using psr-4 protocols installing with packagist.

There are two functions in the class:

insert($message = '') Insert puts an entry into $_SESSION['CFlashMessage'] and that entry is forwarded as the parameter $message.

printMessage() This prints a div encapsuling the message previously put in $_SESSION['CFlashMessage'] and will after displaying it empty $_SESSION['CFlashMessage'] so that it doesn't show it again.

I have also added a css-file that you can load into your previous css-file making the flash message look a little bit cleaner.

Make sure you have started an active session before using these functions otherwise you will get an error.