Log message #3149146

# At Username Text
# 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.
# Jan 29th 2014, 20:45 ten1 requestAction() should be possible, in anything that extends Object
# Jan 29th 2014, 20:45 nif except the curl option?
# Jan 29th 2014, 20:45 feens ...it's either a) fix the problem, or b) figure out how to solve the maze you've constructed
# Jan 29th 2014, 20:44 feens ya, but you're looking for an answer that doesn't really exist
# Jan 29th 2014, 20:44 ten1 see previous comment
# Jan 29th 2014, 20:44 nif ok. i get that. can we move on from it? awareness of it has been there for a while, but like i said, low budget, no time and learning a new framework all contributed to this. everyone has to start somewhere, otherwise they may never reach those higher places where they get to tell other people how they screwed up. but i have a deadline and i have to get this working. next time i will do better
# Jan 29th 2014, 20:43 ten1 it would be compounding error with worse error