Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Bug in version 2.1.1?

Go to End



Community Member, 8 Posts

22 November 2007 at 6:29am


Newbie question/problem:

I have been using a Rails flash-style way of putting temporary messages in my templates. Here's the code for my FlashBucket class:

class FlashBucket {
* write a new variable ('message' by default) to FlashBucket with a value
function writeFlash($var = 'message', $val) {

$_SESSION[$var] = $val;
return TRUE;
* read and empty variable from FlashBucket ('message' by default)
function readFlash($var = 'message') {

$result = $_SESSION[$var];
return $result;

The FlashBucket class methods are called from my page controllers. When I upgraded to v2.1.1 on my development machine, this no longer works. The flash persists. When I reverted to v2.0.2, it worked again.

Any ideas why this is happening?

Thanks for any help you can give me.