# |
Jan 29th 2014, 21:39 |
star_prone |
BackEndCoder: it soesn't work |
# |
Jan 29th 2014, 21:36 |
optimator |
so my statement is App::uses('phpqrcode/phpqrcode.php', 'Lib'); - Does that look right? |
# |
Jan 29th 2014, 21:34 |
BackEndCoder |
hello |
# |
Jan 29th 2014, 21:34 |
lukasstr |
hay there |
# |
Jan 29th 2014, 21:33 |
BackEndCoder |
in the array 'label'=>'my label here' |
# |
Jan 29th 2014, 21:33 |
BackEndCoder |
yes |
# |
Jan 29th 2014, 21:33 |
star_prone |
is there a way to define labels for a checkbox if I create it with FormHelper::checkbox? |
# |
Jan 29th 2014, 21:33 |
BackEndCoder |
^^ |
# |
Jan 29th 2014, 21:32 |
todds |
and what backendcoder said, I would only do this if you are pretty set with the "emails from x domain"-rule. |
# |
Jan 29th 2014, 21:31 |
BackEndCoder |
as an imput |
# |
Jan 29th 2014, 21:30 |
BackEndCoder |
don't make it an email |
# |
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 |