Hey,
I am using the Auth component, but regularly I redirect to a page within the current domain (which would be http://app/dashboard) but I need to redirect to http://backend.app/dashboard). That would be a different controller and I don't know how to tell cake that a logged in user from the frontend has permission to use actions of the backend. Does anyone have an example for this? Would be very very nice... On 15 Sep., 11:27, Jeremy Burns | Class Outfit <[email protected]> wrote: > Is there a reason why you are you not using the Auth component and admin > prefix routing? > > Jeremy Burns > Class Outfit > > [email protected]http://www.classoutfit.com > > On 15 Sep 2010, at 10:15, DigitalDude wrote: > > > Hey, > > > I have an app which is divided into a front- and a backend. I'm using > > the same models in the frontend, but controllers are strictly > > divided. > > > What I'm trying to do is make a login-element into the frontend where > > admins can login, and will be redirected to the authed area in the > > backend. So from the domainhttp://appthe login and after that they > > should be athttp://backend.app/dashboard, which is an area that only > > logged in users can see. > > > Is there any chance to achieve this behaviour? Maybe we can use routes > > or sth like that for this...? > > > Regards, > > > Erik > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > 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 > > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
