Wednesday, January 6, 2010

Re: setFlash() appending a "1"

How are you setting and displaying the flash value? Consider both an
instruction, so if you do something like if($this->Session->flash());
you'll get both the message and a 1 to indicate success. To set the
value, use $this->Session->setFlash();. To display it, use $this-
>Session->flash();.

On Jan 7, 5:40 am, Kerr <hayl...@gmail.com> wrote:
> Hi all, I'm experiencing a really weird issue where the $session->setFlash() method appends a single "1" character directly after the
>
> generated <div> tag.  I'm using an unmolested copy of CakePHP 1.2.5.
> I've looked all through the source in SessionComponent, CakeSession
> and SessionHelper and don't see anywhere where this could be
> happening. Has anyone else experienced a similar issue?

No comments: