# |
Aug 6th 2008, 17:25 |
evo__ |
where is it Tom_M_ ? |
# |
Aug 6th 2008, 17:25 |
Tom_M_ |
that i wrote and need to polish up, but does the trick |
# |
Aug 6th 2008, 17:25 |
Tom_M_ |
evo__ i use a behavior |
# |
Aug 6th 2008, 17:24 |
evo__ |
hello, whats the finest image and resize, well explained and documented image upload component* |
# |
Aug 6th 2008, 17:24 |
evo__ |
hello, whats the finest image and resize, well explained and documented component |
# |
Aug 6th 2008, 17:23 |
Tom_M_ |
maybe im just being anal for an extra simple line of code |
# |
Aug 6th 2008, 17:23 |
Tom_M_ |
$trivia = $this->paginate('Questionset'); $trivia = $trivia[0]; --- was what i did and worked |
# |
Aug 6th 2008, 17:23 |
Tom_M_ |
well i need the index. i should say rather extra depth |
# |
Aug 6th 2008, 17:22 |
gwoo |
Tom_M_: array_pop() or array_shift() |
# |
Aug 6th 2008, 17:22 |
francky06l |
gwoo: he could set a default user for non - authenticated ...? |
# |
Aug 6th 2008, 17:22 |
Mathachew |
What I have to do is manually authorize the user after their permissions are setup, and redirect them accordingly. |
# |
Aug 6th 2008, 17:21 |
Tom_M_ |
i could just go $array = $array[0] - but thats silly i thought |
# |
Aug 6th 2008, 17:21 |
gwoo |
TommyO: isAuthorized() is called automatically in startup |
# |
Aug 6th 2008, 17:21 |
Tom_M_ |
as if it was a find all |
# |
Aug 6th 2008, 17:21 |
Tom_M_ |
francky061: it has an extra key in there [0] |
# |
Aug 6th 2008, 17:21 |
francky06l |
Mathachew: you can change the mode of Auth in beforeFlter for authenticated users ... |
# |
Aug 6th 2008, 17:19 |
TommyO |
Mathachew: Auth only calls its isAuthorized() when it's told to. it won't bother otherwise. so you need to be sure your custom setup gets called properly |
# |
Aug 6th 2008, 17:19 |
francky06l |
Swiatecki: bye |
# |
Aug 6th 2008, 17:19 |
Swiatecki |
anyways, night night, its getting late in GMT +1 |
# |
Aug 6th 2008, 17:18 |
francky06l |
Mathachew: I guess Auth could do all this ... but if we can see the code of your implementation ...? |
# |
Aug 6th 2008, 17:17 |
TommyO |
Mathachew: ok. is your custom ACL a component, class, model method? |
# |
Aug 6th 2008, 17:17 |
francky06l |
Swiatecki: for now, i have a company and I do some consulting in IT .... |
# |
Aug 6th 2008, 17:17 |
MrRio |
Ahh right, francky06l said you were :P |
# |
Aug 6th 2008, 17:17 |
TommyO |
MrRio: I'm not. :) |
# |
Aug 6th 2008, 17:17 |
Swiatecki |
as? |
# |
Aug 6th 2008, 17:17 |
francky06l |
Swiatecki: well I work :-) |
# |
Aug 6th 2008, 17:16 |
francky06l |
Tom_M_: and what are the results ? nothing wrong for me in the code (read quickly thouth) |
# |
Aug 6th 2008, 17:16 |
Swiatecki |
francky06l: what do you do for a living? |
# |
Aug 6th 2008, 17:16 |
MrRio |
TommyO: Hey, how did you become a CakePHP Certified Engineer? |
# |
Aug 6th 2008, 17:16 |
francky06l |
-) |
# |
Aug 6th 2008, 17:16 |
francky06l |
Swiatecki: it could be worse |
# |
Aug 6th 2008, 17:16 |
Swiatecki |
oh man! sweet?! |
# |
Aug 6th 2008, 17:15 |
francky06l |
Swiatecki: Monaco when I am at work, South France now (home) |
# |
Aug 6th 2008, 17:14 |
Swiatecki |
francky06l: where you located? |
# |
Aug 6th 2008, 17:14 |
Tom_M_ |
http://bin.cakephp.org/view/728516538 |
# |
Aug 6th 2008, 17:14 |
francky06l |
Swiatecki: gtm - 1 for me |
# |
Aug 6th 2008, 17:14 |
Mathachew |
right |
# |
Aug 6th 2008, 17:14 |
francky06l |
Tom_M_: can we see the query ? |
# |
Aug 6th 2008, 17:14 |
Tom_M_ |
i mean i guess its running like a find all when i want read |
# |
Aug 6th 2008, 17:14 |
TommyO |
authorize is an Auth member |
# |
Aug 6th 2008, 17:14 |
TommyO |
authorize() is not an Auth method |