Hi, I am using the Security component, but would like to make sure that if the security check fails, the User will get an Error message displayed inside the Layout.
So, when I use just: $this->Security->blackHole($this, 'You are not authorized to process this request!'); I only get a blank white page with nothing else displayed. So I added: $this->Security->blackHoleCallback = 'accessError'; With this, I now get the "You are not authorized to process this request!" displayed, but it sits outside of my Layout, its actually even outside the <!DOCTYPE > What am I doing wrong? If I understand right, than I would need a function accessError() , but what do i need to add into this to make sure it is all in one Layout? I look forward to any help, I have read backwards and forwards through the www but could not find an answer. Thanks a lot for your help. Luke --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
