Log message #113707

# At Username Text
# Aug 9th 2008, 13:25 trueaxe jaredhoyt: ok, I'm already doing that now.
# Aug 9th 2008, 13:25 jaredhoyt just let the login redirect be /users/view and do a $user_info = $this->User->find() w/ $this->Auth->user('id')
# Aug 9th 2008, 13:24 jaredhoyt trueaxe: that's what i'm saying, let /users/view be their "home site" ... all adding an id does is tell the controller which user info to pull from the db... but you don't need a param since the id is already set in the session
# Aug 9th 2008, 13:24 freebox but i dont know why in sql log appears categoria_id = "category slug"
# Aug 9th 2008, 13:24 AD7six freebox why is it necessary for you to show blatantly wrong sql to have somone point it out to you?
# 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