# |
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? |
# |
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 |