$session->params['extra']

On Jul 3, 7:29 am, Marc George <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm a new Cake user, cutting my teeth on 1.2. Forgive me if I'm being
> stupid here but I'm finding the documentation a little unclear on the
> use of SessionComponent::setFlash() in its extended form. i.e:
>
> SessionComponent::setFlash  ($message, $layout = 'default', $params =
> array(),$key = 'flash')
>
> I'm attempting this in my controller:
>
> $this->Session->setFlash(__('An error occurred while uploading your
> image: ' . $error, true), "default", array("extra" => "EXTRAINFO
> HERE"), "imageError");
>
> and expecting to be able to find $extra set in the view for use:
>
> if($session->check("Message.imageError")){
> $session->flash("imageError");
> echo "<p>extra info:" . $extra . "</p>";
>
> }
>
>  Instead it returns an undefined var.
>
> I've also attempted to dig around the flash array like so - $session-
>
> >flash("imageError.extra"), but with no success.
>
> $session->flash("imageError") works fine.
>
> Could any cake gurus give me a pointer as to where I'm going wrong?
>
> Thanks in advance..
> Marc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to