Re: changing $session-flash('auth'); layout

2009-09-25 Thread adam

Thanks.  I finally sucked up my Oh woe is me and just *gasp* changed
the css styles to fit what cake automatically outputs.  MUCH better
now.

On Sep 24, 10:27 pm, brian bally.z...@gmail.com wrote:
 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 abennett...@sbcglobal.net wrote:

  Sorry.  When calling $session-flash('auth'); in my layout, it outputs
  the message like this:

  div id=authMessage class=messageMESSAGE 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 bally.z...@gmail.com 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 abennett...@sbcglobal.net 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



changing $session-flash('auth'); layout

2009-09-24 Thread adam

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: changing $session-flash('auth'); layout

2009-09-24 Thread brian

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 abennett...@sbcglobal.net 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: changing $session-flash('auth'); layout

2009-09-24 Thread adam

Sorry.  When calling $session-flash('auth'); in my layout, it outputs
the message like this:

div id=authMessage class=messageMESSAGE 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 bally.z...@gmail.com 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 abennett...@sbcglobal.net 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: changing $session-flash('auth'); layout

2009-09-24 Thread brian

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 abennett...@sbcglobal.net wrote:

 Sorry.  When calling $session-flash('auth'); in my layout, it outputs
 the message like this:

 div id=authMessage class=messageMESSAGE 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 bally.z...@gmail.com 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 abennett...@sbcglobal.net 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---