make sure there is a leading slash on your redirect, or else it assumes you
want to redirect to the current model, then your redirect..
if you have $this->redirect('admin/campanas/view/36') in your users model,
it will redirect to /users/admin/campanas/view/36 instead.
what you should have is $this->redirect('/admin/campanas/view/36');
On Feb 9, 2008 8:34 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi there!
> I've always used othAuth Component but now that I've switched to cake
> 1.2 I've had some problems, reading on internet I was able to solve
> almost all of them, but there is a particular one that I havent been
> able to solve: after the session is ended and user tries to enter in
> an admin area the component shows the login form, that's ok, but when
> the user submits the form it redirects to e.g.
> http://localhost/users/admin/campanas/view/36,
> when it should be redirecting to http://localhost/admin/campanas/view/36.
>
> Do you know the solution? Please tell me
>
> >
>
--
In the name of Life, Liberty, and the pursuit of my sanity.
Siebren Bakker(Aevum Decessus)
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s+: a20 C++++ UL++ P L++
!E W++ N(-) o? K? w(+) O? M-- V?
PS+ PE Y- PGP- t+ 5? X- R tv--
b++ Di D+ G+ e h! r y-
------END GEEK CODE BLOCK------
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---