Log message #113702

# At Username Text
# Aug 9th 2008, 13:24 trueaxe I need to know the id, don't I?
# Aug 9th 2008, 13:24 freebox i use this: $this->set('piadas', $this->paginate('Piada', array('Piada.categoria_id'=>$this->Categoria->id)));
# Aug 9th 2008, 13:23 trueaxe how else can I redirect them to their site?
# Aug 9th 2008, 13:23 freebox int
# Aug 9th 2008, 13:23 medice nevermind
# Aug 9th 2008, 13:23 AD7six freebox what sort of field is categoria_id
# Aug 9th 2008, 13:23 jaredhoyt trueaxe: right, but why do you need the id as a param in the url?
# Aug 9th 2008, 13:23 AD7six medice: what does that mean
# Aug 9th 2008, 13:23 trueaxe I want to redirect the user to their "home" site
# Aug 9th 2008, 13:23 freebox deleted
# Aug 9th 2008, 13:23 medice paginatecount can be used in views..
# Aug 9th 2008, 13:22 freebox lol
# Aug 9th 2008, 13:22 jaredhoyt i wouldn't even bother redirecting =P putting the id in the url isn't gonna give you any added benefit
# Aug 9th 2008, 13:22 AD7six delete it
# Aug 9th 2008, 13:22 AD7six NOWHERE
# Aug 9th 2008, 13:22 freebox AD7six: yes, where i need to put paginateCount?
# Aug 9th 2008, 13:22 trueaxe yeah
# Aug 9th 2008, 13:21 jaredhoyt you mean the view action?
# Aug 9th 2008, 13:21 AD7six freebox have you read the sql log?
# Aug 9th 2008, 13:21 jaredhoyt check in the view?
# Aug 9th 2008, 13:21 trueaxe and redirect to it there
# Aug 9th 2008, 13:21 AD7six ?
# Aug 9th 2008, 13:21 AD7six freebox you put paginateCount in The Category controller
# Aug 9th 2008, 13:21 trueaxe I will check in the view if the user id is set
# Aug 9th 2008, 13:20 trueaxe thanks
# Aug 9th 2008, 13:20 jaredhoyt but you're still logged in
# Aug 9th 2008, 13:20 trueaxe sure -.-
# Aug 9th 2008, 13:20 jaredhoyt it's because you're not being redirect
# Aug 9th 2008, 13:20 trueaxe yeah, your're right
# Aug 9th 2008, 13:20 jaredhoyt what you're describing is exactly what i'm saying should happen.... i know you're just sitting at the login
# Aug 9th 2008, 13:20 trueaxe hmm, doh me
# Aug 9th 2008, 13:19 jaredhoyt trueaxe: and then did you try and access /users/view/id ?
# Aug 9th 2008, 13:19 trueaxe jaredhoyt: now that's the solution!
# Aug 9th 2008, 13:19 jaredhoyt you could just redirect to /users/view/ and have the user info be retrieved using the id in the session rather than using a param and having to check the permission of the current user to access that particular id
# Aug 9th 2008, 13:19 freebox AD7six: http://bin.cakephp.org/view/2102231891
# Aug 9th 2008, 13:19 trueaxe jaredhoyt: believe me or not, but as soon as I set autoRedirect to false, I can't login anymore. The fields of the login form are set with the username and the hashed (!) password
# Aug 9th 2008, 13:18 jaredhoyt trueaxe: btw, another alternative to this is just to have an account page w/o the id as a parameter since the id is already stored in the user session
# Aug 9th 2008, 13:17 AD7six freebox and teh sql log
# Aug 9th 2008, 13:17 freebox ok
# Aug 9th 2008, 13:17 AD7six freebox show what you're doing
# Aug 9th 2008, 13:17 jaredhoyt trueaxe: autoRedirect should not be a factor in a successful login, it's only used for redirection purposes