I use the blackHole to print out the static message and die instead of redirecting. And I give out a link to the relevant pages. For eg. Mostly due to the session timeout, normal users would hit the blackHole, so I would give them the referrer/login link and ask them to start fresh.
On the side note, what do you mean when you say Apache crash? Ketan francky06l wrote: > Hi All, > > Actually it's my first time I am trying the blackHoleCallBack of the > security component. I wanted to have a unique function (in > app_controller) that I would use for a blackHole. > My approch is to render a static page, with a message. > I have implemented a function in the app_controller that just set a > Flash message and redirect to '/pages/home'. However this makes > Apache crashing. > > Does anyone has an idea or advice on the best to handle the > blackHole ? > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
