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 [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
-~----------~----~----~----~------~----~------~--~---