php: 4.4.2 cake: 1.2.x Models: Album hasMany Photo
Situation: >From the albums/view page, if a non-admin user tries to delete an associated photo from albums/view page -- which allowed only for admin users. I have to set a flash message and redirect it to the original page from which the action originated (I don't know if "referrer url" is the correct term for this). This is easy if this action originates only from albums/view page, but it can originate from multiple pages (like photos/index, photos/view, etc). Problem: I have set flash and then redirect the control to the original page from which the action was originated. How do I find the url of the original page from the photos controller? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
