In beforeFilter() check if user isn't logged In Controller::redirect seccond parameter is the error, set it to 404.
http://api.cakephp.org/1.2/class_controller.html#903188d3de83bd65c78bb676f61b3039 On Wed, Apr 9, 2008 at 7:14 AM, . <[EMAIL PROTECTED]> wrote: > hi. i'd like to set up the admin controller pages like this: An anonymous > user who accesses an Admin page from the URL would get a Page Not Found > error page. A logged in user who is an admin would be able to see this page. > how do i set up the page not found page? > > 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 -~----------~----~----~----~------~----~------~--~---
