Gotcha. Auth uses 'default' layout when calling $this->Session->setFlash(). Have a look at SessionHelper::flash() to see how it handles that.
http://api.cakephp.org/view_source/session-helper/#line-129 In any case, if you want to style/move it/whatever, create a CSS rule for the #authMessage selector. You can even use javascript to do a little more with it. (simple with jQuery). On Thu, Sep 24, 2009 at 8:54 PM, adam <[email protected]> wrote: > > Sorry. When calling $session->flash('auth'); in my layout, it outputs > the message like this: > > <div id="authMessage" class="message">MESSAGE HERE</div> > > I would like it to be whatever I want it to be. When calling $this- >>setFlash(), the second or third parameter allows you to set the flash > layout. And then $session->flash(); will output the message in that > layout. However, this functionality is missing from auth flash > messages. > > Or is it? That's what I'm asking. > > On Sep 24, 7:13 pm, brian <[email protected]> wrote: >> I read that 3 times and still have no idea what you want to do. >> >> On Thu, Sep 24, 2009 at 2:37 PM, adam <[email protected]> wrote: >> >> > i am implementing a layout and am sad that i can not change the auth >> > flash layout, instead i am having to use session->check(), then >> > session->read(), and then to remove the message, session->flash() into >> > an area of the layout where it will not be displayed. >> >> > is there a way to chagne the flash layout for auth messages (like with >> > setFlash layouts?) without having to extend the session helper, or >> > maybe be able to delete the message with the session helper from the >> > layout without using flash() which displays the message? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
