Log message #113723

# At Username Text
# Aug 9th 2008, 13:32 freebox this is the problem with cake
# Aug 9th 2008, 13:32 freebox great
# Aug 9th 2008, 13:31 AD7six freebox there are no bugs in the sections I told you to read. your problem is nothing to do with creating paginateCount. there is nothing complex about your pagination scenario - just use the right parameters.
# Aug 9th 2008, 13:30 freebox is more easy for me understand an php code snippet that an bugged english manual
# Aug 9th 2008, 13:29 freebox yep
# Aug 9th 2008, 13:29 AD7six freebox I don't know. it would be a great start
# Aug 9th 2008, 13:29 freebox AD7six: why i don't show me how to do it?
# Aug 9th 2008, 13:28 AD7six freebox that's true but you're reading the wrong section anyway - there is nothing complex about what you're doing
# Aug 9th 2008, 13:27 freebox AD7six: manual is telling me to do things in the wrong way ($sql=..)
# Aug 9th 2008, 13:27 jaredhoyt k
# Aug 9th 2008, 13:27 trueaxe jaredhoyt: thanks, now it works just fine
# Aug 9th 2008, 13:27 AD7six freebox yes but the help is reading the manual to you, holding your hand and reading your own debug output.
# Aug 9th 2008, 13:26 TonkaTruck Will reverse routing of a prefix route honor arguments? Or must a new route be created for each possible uri format passing arguments? http://bin.cakephp.org/view/1344362767
# Aug 9th 2008, 13:26 freebox btw i'm here asking help, because i dont know how to do it right
# Aug 9th 2008, 13:26 freebox AD7six: two things: I really noob with cake and paginate things, i'm brazilian, sometimes is hard to understand english manuals and tutorials
# Aug 9th 2008, 13:25 trueaxe or I'm working on it
# 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?