Log message #3149164

# At Username Text
# Jan 29th 2014, 21:30 BackEndCoder _if_ its only stonybrook domains you want
# Jan 29th 2014, 21:30 todds I would do the built-in email validation first though
# Jan 29th 2014, 21:30 BackEndCoder Sameer
# Jan 29th 2014, 21:29 todds You could also just do a custom validation method and do an explode() on @ and make sure the second piece is the domain you want.
# Jan 29th 2014, 21:28 todds me neither, i'm awful with it. :(
# Jan 29th 2014, 21:28 Sameer I'm not really sure how to come up with a regex expression for that.
# Jan 29th 2014, 21:27 todds sameer: you can use regex in your $validate config -- http://book.cakephp.org/2.0/en/models/data-validation.html#custom-regular-expression-validation
# Jan 29th 2014, 21:26 Sameer Is there a way to create an email rule such that the email has to be of a specific domain? For example, if you try registering with something@stonybrook.edu it will work but any domain other than stonybrook.edu will not work.
# Jan 29th 2014, 21:24 todds gellin optimator: congrats!
# Jan 29th 2014, 21:22 optimator COOL! I have my test helper class working - that was easy. Now to hook up the qr stuff
# Jan 29th 2014, 21:14 gellin i over thought the query a bit
# 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?