It was a routing issue. I managed to piece it together when the 'edit' function of the same controller was acting bizarrely. Once I fixed the routing, everything worked as expected.
On Feb 13, 1:13 pm, brian <bally.z...@gmail.com> wrote: > This seems like a routing issue. What's the route you're using for this? > > And, are you certain that the both servers have an identical routes.php? > > On Fri, Feb 13, 2009 at 1:07 PM, Tony Thomas <truet...@gmail.com> wrote: > > > I moved my CakePHP app to a new server and everything is working fine > > except the one area where I have to allow public access. > > > The controller I want to allow is 'report', so in the pertinent > > controller, I have this: > > > function beforeFilter() { > > $this->Auth->allow('report'); > > } > > } > > > This worked fine on the previous server. However, on the new server, > > when I try to access the URL in question, I'm sent to the login page. > > > Let's say my url is 'example.com/controller_name/report' > > > I'm immediately redirected to 'example.com/users/login' > > > But, if I go to 'example.com/Controller_Name/report', it works fine. > > The only problem is that since the form on the page is built using > > $form->create('ControllerName', array('action' => 'report')), the form > > action winds up reverting to the CakePHP convention of > > 'controller_name/action' rather than 'Controller_Name/action' and I'm > > once again kicked out. > > > I'm sure there's probably something simple I'm missing that will > > correct this, but I don't know where to start. Has anyone run into > > this behavior before? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---