# |
Aug 9th 2008, 13:13 |
jaredhoyt |
trueaxe: are you sure it's not logged in, or are you just not arriving to the correct page... try and access a protected resource after the login manually |
# |
Aug 9th 2008, 13:13 |
freebox |
AD7six: http://book.cakephp.org/view/164/pagination |
# |
Aug 9th 2008, 13:13 |
trueaxe |
hmm, if I set autoRedirect to false, I really can#t login |
# |
Aug 9th 2008, 13:13 |
jaredhoyt |
trueaxe: bin your user controller |
# |
Aug 9th 2008, 13:12 |
AD7six |
freebox why do you have a different condition from your paginate call, and why are you using aselect and counting the results in php that's, amongst various things, inefficient |
# |
Aug 9th 2008, 13:12 |
trueaxe |
oO, it got even worse. I can't login anymore |
# |
Aug 9th 2008, 13:11 |
jaredhoyt |
just redirect manually :) |
# |
Aug 9th 2008, 13:11 |
jaredhoyt |
actually, just setting the redirect there won't work... |
# |
Aug 9th 2008, 13:10 |
jaredhoyt |
login() occurs near the end of startup() so user should already be logged in and stored in the session |
# |
Aug 9th 2008, 13:10 |
trueaxe |
let me try that again |
# |
Aug 9th 2008, 13:10 |
jaredhoyt |
shouldn't be |
# |
Aug 9th 2008, 13:10 |
trueaxe |
but login is the wrong moment too |
# |
Aug 9th 2008, 13:10 |
B00mgo_M4N |
the |
# |
Aug 9th 2008, 13:10 |
B00mgo_M4N |
am |
# |
Aug 9th 2008, 13:10 |
B00mgo_M4N |
i |
# |
Aug 9th 2008, 13:10 |
trueaxe |
I tried |
# |
Aug 9th 2008, 13:10 |
jaredhoyt |
exchange that with Auth->autoRedirect = false; and either redirect yourself in login() or set the loginRedirect there |
# |
Aug 9th 2008, 13:10 |
trueaxe |
yeah, I guess that too |
# |
Aug 9th 2008, 13:09 |
jaredhoyt |
so user('id') doesn't exist yet =P |
# |
Aug 9th 2008, 13:09 |
jaredhoyt |
trueaxe: Auth has no user set because i assume you're doing that in beforeFilter() which is before AuthComopent's startup() is run |
# |
Aug 9th 2008, 13:08 |
AD7six |
freebox probably the fact that you implemented it. |
# |
Aug 9th 2008, 13:07 |
B00mgo_M4N |
tell me the best Code Coverage tool for php |
# |
Aug 9th 2008, 13:06 |
freebox |
in the output you can see that last value is a slug o.O |
# |
Aug 9th 2008, 13:05 |
freebox |
AD7six: what is wrong with my paginateCount()? http://bin.cakephp.org/view/851492605 |
# |
Aug 9th 2008, 13:05 |
B00mgo_M4N |
ok guys, i'm off to eat lunch with my son. thanks for the help! |
# |
Aug 9th 2008, 13:03 |
TonkaTruck |
Are there any fancy open source ajax tree managers? |
# |
Aug 9th 2008, 13:02 |
trueaxe |
I would need some moment after login |
# |
Aug 9th 2008, 13:02 |
trueaxe |
$this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'view', $this->Auth->user('id')); was my first shot, but Auth has no user set in the AppController |
# |
Aug 9th 2008, 13:02 |
trueaxe |
I want to set the loginRedirect of Auth to a user specific site (users/view/id). How do I do that? |
# |
Aug 9th 2008, 13:01 |
freebox |
but still not working, i think is because paginateCount |
# |
Aug 9th 2008, 13:01 |
AD7six |
freebox about time ;) |
# |
Aug 9th 2008, 12:59 |
freebox |
D |
# |
Aug 9th 2008, 12:59 |
freebox |
AD7six: $this->set('piadas', $this->paginate('Piada', array('Piada.categoria_id'=>$this->Categoria->id))); |
# |
Aug 9th 2008, 12:58 |
freebox |
haha |
# |
Aug 9th 2008, 12:58 |
freebox |
will never work |
# |
Aug 9th 2008, 12:58 |
trueaxe |
hi all |
# |
Aug 9th 2008, 12:58 |
freebox |
and testing it in C: |
# |
Aug 9th 2008, 12:58 |
freebox |
i'm editing the app in my pen drive |
# |
Aug 9th 2008, 12:58 |
freebox |
lol |
# |
Aug 9th 2008, 12:51 |
jaredhoyt |
or do a an if() on the param in the beforeFilter() and allow() or deny() 'display' accordingly |
# |
Aug 9th 2008, 12:51 |
SunSparc |
jaredhoyt: Hmm, ok |