Log message #3149153

# At Username Text
# Jan 29th 2014, 21:13 gellin that seems to work how i want
# Jan 29th 2014, 21:13 gellin 'OR' => array('UmpireTestRegistration.retry_remaining' => 1, 'UmpireTestRegistration.finished' => 0)));
# Jan 29th 2014, 21:13 gellin $conditions = array( 'conditions' => array( 'AND' => array('UmpireTestRegistration.user_id' => $user_id),
# Jan 29th 2014, 21:12 todds sorry one second
# Jan 29th 2014, 21:07 gellin Amoungst almost everything except whats correct, it would seem
# Jan 29th 2014, 21:06 gellin thats what i tried
# Jan 29th 2014, 21:06 gellin 'OR' => array(array('UmpireTestRegistration.retry_remaining' => 1), 'AND' => array('UmpireTestRegistration.user_id' => $user_id)));
# Jan 29th 2014, 21:06 gellin $conditions = array( 'AND' => array('UmpireTestRegistration.user_id' => $user_id, 'UmpireTestRegistration.finished' => 0),
# Jan 29th 2014, 21:05 gellin I need my condition to basically say, WHERE (Model.user_id = 1 AND Model.finished = 1) OR ((Model.retry_remaining = 1) AND Model.user_id = 1)
# Jan 29th 2014, 21:04 gellin I am trying to do a condition through a Model->find('all', ...
# Jan 29th 2014, 21:03 optimator todds: cool - I might try the helper approach just to start learning
# Jan 29th 2014, 21:02 todds gellin: what's your question?
# Jan 29th 2014, 21:02 todds optimator: if you can't find a plugin that meets your requirements. then the helper approach (putting the library in app/lib) is a good one.
# Jan 29th 2014, 21:01 gellin Can someone please help me with a, seemingly simple AND/OR condition, I can't seem to get it right
# Jan 29th 2014, 20:59 optimator oh - there was one that used google, but I need to to not use a public website
# Jan 29th 2014, 20:58 optimator no! but I'm sooo new I'm not sure I'd know how to make it work
# Jan 29th 2014, 20:58 ten1 optimator: are you sure there's not already a cake plugin for this?
# Jan 29th 2014, 20:57 ten1 the helper will just be a kind of shim to direct the calls to the library
# Jan 29th 2014, 20:57 optimator sweet. thanks
# Jan 29th 2014, 20:57 ten1 then include it in your helper with App::uses()
# Jan 29th 2014, 20:56 ten1 optimator: put it in app/Lib
# Jan 29th 2014, 20:56 optimator todds: so where would I put the qr include directory if I'm using a view helper?
# Jan 29th 2014, 20:55 gellin Is anyone here that will help me with a, and/or condition statement
# Jan 29th 2014, 20:54 todds ten1: derp -- sorry, I thought you meant use the shell to trigger the curl call rather than requestAction().
# Jan 29th 2014, 20:53 ten1 todds: requestAction() wouldn't hit the web stack
# Jan 29th 2014, 20:53 todds cool, it'll probably end up inside a view helper or element then.
# Jan 29th 2014, 20:51 optimator it renders a qr code as a png
# Jan 29th 2014, 20:51 todds depends on what the file does. what does it do?
# Jan 29th 2014, 20:50 optimator the file isn't a cake MVC
# Jan 29th 2014, 20:50 optimator hey - I'm new to cake, I have a php file I want to include. Where/how do i do that in the view?
# Jan 29th 2014, 20:48 todds lol, the shell is just more unecessary overhead if he is gonna go through the web stack anyway. I mean the situation is jacked, but i think it's probably the best approachâ?¦if a re-write is out of the question, that is.
# Jan 29th 2014, 20:48 nif why always the assumption that coders are guys? 'night all.
# Jan 29th 2014, 20:47 ten1 ACTION shrugs
# Jan 29th 2014, 20:47 ten1 but if he has the shell...
# Jan 29th 2014, 20:47 todds freakin ten1â?¦. :-P
# Jan 29th 2014, 20:47 ten1 ...or that :/
# Jan 29th 2014, 20:46 todds instead of calling cake from cron you'll just do a curl call to your web app
# Jan 29th 2014, 20:46 nif i will. thanks! and thanks for all the advice.
# Jan 29th 2014, 20:46 todds lol
# Jan 29th 2014, 20:46 ten1 requestAction() being made from pure clarified Satan and not to be used except by the brave, bold, needful, and exceptionally stupid
# Jan 29th 2014, 20:46 todds nif: just do the curl call.