Re: passing data between pages

2008-10-17 Thread dr. Hannibal Lecter

If you want to pass on the message maybe setFlash is the best option
(possibly with a custom key):

http://book.cakephp.org/view/568/flash

Although I don't see anything wrong with using your own session keys.
Either way, I'd stay away from URL parameters as they can be faked by
the end users, session vars are more reliable IMHO.

Hope that helps!

On Oct 17, 12:25 pm, . <[EMAIL PROTECTED]> wrote:
> what is the "proper" way to pass data between pages? Let's say I want to
> display a message that a database save is successful, or failed. Right now,
> I am passing the information as a parameter in the URL (
> localhost/blah?success=1 ). Is there a better way to do it? I've thought
> about using a Session...
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



passing data between pages

2008-10-17 Thread .
what is the "proper" way to pass data between pages? Let's say I want to
display a message that a database save is successful, or failed. Right now,
I am passing the information as a parameter in the URL (
localhost/blah?success=1 ). Is there a better way to do it? I've thought
about using a Session...

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---