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

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,