News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

James Fuller's Blog:
Adding a Session Flash Message to your site in Lithium PHP
August 18, 2011 @ 08:32:05

James Fuller has a new post to his blog today showing how to use flash messaging in the Lithium PHP framework.

In my case, I needed to display to the user a "flash message" after redirecting them to another page. CakePHP has this as part of the framework by default but Lithium will ask you to do a bit more work. Luckily, Lithium framework lead developer Nate Abele has created a handy extension to the Lithium session helper will will give us exactly what we need.

For those not familiar with what a "flash message" is, he defines it as a message available to the next page load with relevant information about the previous page. He includes the instructions on how to get the extension for this working in Lithium - downloading, configuring and adding the output variable for the flash messaging to your layout. He also includes an example of how to set the message so it'll be saved into the current session.

1 comment voice your opinion now!
session flash message lithium framework session tutorial


blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: Don’t Fear The Command Line: Using CakePHP Shells

Juozas Kaziukenas' Blog: Starting with Zend_Search_Lucene

Working Software Blog: Escaping single and double quotes for use with XPath queries in PHP

PHPEveryday.com: Smarty Template Engine Tutorial

Kevin Schroeder's Blog: ZendCon 2010 Podcast - Introducing Zend Framework 2.0


Community Events





Don't see your event here?
Let us know!


laravel unittest developer testing install introduction podcast threedevsandamaybe library release configure code community interview language framework list wordpress opinion series

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework