# |
Aug 8th 2008, 10:47 |
teknoid |
troutoil: show some code |
# |
Aug 8th 2008, 10:33 |
mdcatc |
$posts = $this->requestAction('posts/index/sort:created/direction:desc/limit:10'); |
# |
Aug 8th 2008, 10:33 |
mdcatc |
In passing parameters what is the syntax for passing conditions? for example, I can pass sort, direction and limit. But how could I pass condition where active = 0 |
# |
Aug 8th 2008, 10:33 |
troutoil |
It works fine on single word models, but once I try with a CamelCased model, i can't figure out what variable the form helper will look for... |
# |
Aug 8th 2008, 10:32 |
troutoil |
i'm trying to set a variable in my controller for the form helper to build a Select from... |
# |
Aug 8th 2008, 10:31 |
troutoil |
hey, i've got a question about populating a Select from a parent table.. |
# |
Aug 8th 2008, 10:28 |
gwoo |
obiyoda: no |
# |
Aug 8th 2008, 10:27 |
obiyoda |
so If i have echo $form->input('credit.CardNumber',array('div'=>'number')); would the corresponding item in the validation be var $validate = array('credit.CardNumber' => 'VALID_NOT_EMPTY') ? |
# |
Aug 8th 2008, 10:26 |
tbranyen_ |
finally |
# |
Aug 8th 2008, 10:25 |
gwoo |
the best place on earth |
# |
Aug 8th 2008, 10:25 |
gwoo |
obiyoda: you came to the right place |
# |
Aug 8th 2008, 10:25 |
obiyoda |
gwoo, Thats why i asked here |
# |
Aug 8th 2008, 10:24 |
gwoo |
obiyoda: dont believe everything you read (unless it comes from me) :) |
# |
Aug 8th 2008, 10:24 |
__mork |
after installed phpgacl api I get header already sent |
# |
Aug 8th 2008, 10:23 |
obiyoda |
gwoo, Okay then I must be doing something wrong... Some of the stuff i read led me to believe it only checked the items being saved to the database. |
# |
Aug 8th 2008, 10:22 |
FunkyWeasel |
Which is odd. Ho hum, more digging. |
# |
Aug 8th 2008, 10:22 |
__mork |
someone has experience with phpgacl? |
# |
Aug 8th 2008, 10:22 |
FunkyWeasel |
gwoo: Sadly I'm not able to use debug(Debugger::trace)) because the pages throwing the above error doesn't even get to execute the controller method. |
# |
Aug 8th 2008, 10:22 |
gwoo |
obiyoda: validation works on anythign in the validate array |
# |
Aug 8th 2008, 10:22 |
obiyoda |
What I'm trying to do is validate a form item that doesn't get saved to the database. Is this possible? |
# |
Aug 8th 2008, 10:21 |
obiyoda |
Does validation only work on data that is being saved to the database? |
# |
Aug 8th 2008, 10:16 |
infantigniter |
ie, if i supplied the ID to a row that already exists |
# |
Aug 8th 2008, 10:15 |
infantigniter |
has been created* |
# |
Aug 8th 2008, 10:15 |
infantigniter |
this is probably a silly question, but there doesn't seem to be an update() function. is this because save() creates a new record if it is not created but updates if it has been? |
# |
Aug 8th 2008, 10:13 |
FunkyWeasel |
gwoo: Nice one, will look into that! |
# |
Aug 8th 2008, 10:13 |
gwoo |
FunkyWeasel: debug(Debugger::trace()); |
# |
Aug 8th 2008, 10:12 |
infantigniter |
np |
# |
Aug 8th 2008, 10:11 |
cl0s |
infantigniter: thanks! |
# |
Aug 8th 2008, 10:11 |
cl0s |
i dont really need to log them in.. actually better that i dont.. but have the guest as an aro anyway and jsut use this->auth->check((check for alias, if null use anon), controller, action); |
# |
Aug 8th 2008, 10:10 |
infantigniter |
c10s: k :) |
# |
Aug 8th 2008, 10:10 |
cl0s |
ahh wait your right.. cant believe i didnt see it.. |
# |
Aug 8th 2008, 10:09 |
infantigniter |
c10s: then see if there's a way you can just trigger log-in for that person through calling an auth method. otherwise you can write a workaround that simulates the user logging in |
# |
Aug 8th 2008, 10:09 |
infantigniter |
c10s: i gotcha. hmm... i don't use auth - i use darkauth - but i'm sure it's very similar. all i can suggest is that if Auth does not find that this user is logged in -- and therefore this user is a guest -- |
# |
Aug 8th 2008, 10:08 |
cl0s |
the anon user is pretty much a user thats not logged in.. |
# |
Aug 8th 2008, 10:07 |
cl0s |
i want to use a guest user instead of allow('pages......').. so i can control permissions from an admin instead of in the code.. |
# |
Aug 8th 2008, 10:07 |
infantigniter |
c10s: what do you need the 'anon' user for? |
# |
Aug 8th 2008, 10:06 |
cl0s |
i have Guest user.. that i would like to automatically login to my site as like the 'Anon' user.. but then a someone can login as themself which has more permissions.. is this possible? |
# |
Aug 8th 2008, 10:06 |
FunkyWeasel |
Still can't narrow down what's causing " Error: Database table cake_app_models for model AppModel was not found." Is there no way to get more debug information? Such as what call is throwing this error? |
# |
Aug 8th 2008, 10:06 |
cl0s |
how would I auto login someone using auth? |
# |
Aug 8th 2008, 10:05 |
FunkyWeasel |
teknoid: style reasons afaik |
# |
Aug 8th 2008, 10:03 |
teknoid |
FunkyWeasel: yes, but why caps? |