# |
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 |
# |
Aug 9th 2008, 12:50 |
jaredhoyt |
SunSparc: the allow() is for actions, not parameters though afaik... so you might have to separate the home page into another action |
# |
Aug 9th 2008, 12:49 |
jaredhoyt |
SunSparc: just copy the pages_controller from the cake core |
# |
Aug 9th 2008, 12:49 |
linked_ |
hmm, i think my question should be...does routes::parseExtensions affect controllers' passedArgs |
# |
Aug 9th 2008, 12:45 |
SunSparc |
When using the Auth component, if I want to "allow" users to see the home page "views/pages/home.ctp" will I need to create a PagesController in order to add the Auth->allow? I assume the answer is, yes. |
# |
Aug 9th 2008, 12:40 |
linked_ |
i made use of mapResources to automatically handle calls for /controller/action.xml. does it also understands /controller/action/param1/param2.xml? |
# |
Aug 9th 2008, 12:39 |
linked_ |
hi. does routes::mapResources definition affects passedArgs? |
# |
Aug 9th 2008, 12:31 |
jaredhoyt |
or do you care, i don't know how closely related rowing is to sailing =P |
# |
Aug 9th 2008, 12:30 |
jaredhoyt |
gwoo: you enjoying the rowing coverage today? |
# |
Aug 9th 2008, 12:28 |
B00mgo_M4N |
you're welcome :) |
# |
Aug 9th 2008, 12:23 |
ilove_php |
AD7 its working now, thanks for those advice |
# |
Aug 9th 2008, 12:16 |
AD7six |
TommyO: I feel like a mirror :P |
# |
Aug 9th 2008, 12:13 |
TommyO |
haha. there it is again |