Re: Can you find out the last controller/action?

2006-08-07 Thread John Zimmerman [gmail]
Thanks for the function.  I should have searched the API.On 8/7/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:Exactly what I was looking for Chris - thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Can you find out the last controller/action?

2006-08-07 Thread [EMAIL PROTECTED]
Exactly what I was looking for Chris - thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send em

Re: Can you find out the last controller/action?

2006-08-07 Thread Chris Lamb
Hi On Mon, 7 Aug 2006 12:58:17 -0700 "John Zimmerman [gmail]" <[EMAIL PROTECTED]> wrote: > This won't work all the time and can't be completely trusted, but you > can write a function to deal with different scenarios based on the > contents of $_SERVER['HTTP_REFERER']. Cake already has such a

Re: Can you find out the last controller/action?

2006-08-07 Thread John Zimmerman [gmail]
This won't work all the time and can't be completely trusted, but you can write a function to deal with different scenarios based on the contents of $_SERVER['HTTP_REFERER'].Not all browsers will report it, and some will report it incorrectly on purpose. But you should be able to determine the acti

Can you find out the last controller/action?

2006-08-07 Thread [EMAIL PROTECTED]
Is there any way to find out the controller/action that a user was at prior to the current controller/action? Say you wanted to redirect a user back to the page they came from - how would you find out that page? I'd prefer not to have to keep any sort of history, or last page, in a session. Jus