Log message #3149191

# At Username Text
# Jan 29th 2014, 21:46 star_prone <?php echo $this->Form->checkbox('CityJob.city_id', array('value' => $city_id, 'hiddenField' => false, 'label'=>'test'), array('legend' => $city))?>
# Jan 29th 2014, 21:46 FreefallGeek Will do.
# Jan 29th 2014, 21:45 ten1 but before we talk, you might want to read the chapter of the cake book on relations
# Jan 29th 2014, 21:45 ten1 let's talk foreign keys and relations
# Jan 29th 2014, 21:45 ten1 'dependencies' is loose terminology
# Jan 29th 2014, 21:44 FreefallGeek The problem I see there is that you then have to update dependancies in both models anytime an association is changed
# Jan 29th 2014, 21:43 ten1 FreefallGeek: both would be preferred
# Jan 29th 2014, 21:42 FreefallGeek Or do you define them both ways, so that User has a collection of associated Players?
# Jan 29th 2014, 21:41 FreefallGeek Do you define dependancies just in the child object? For instance, Player object contains UserID field with corresponding User ID
# Jan 29th 2014, 21:41 todds optimator: i think it should be ('phpgrcode', 'Lib') -- i'm not 100% on that though.
# Jan 29th 2014, 21:41 FreefallGeek If you have two objects which are dependant on one another, for instance a User objet and a Player object
# Jan 29th 2014, 21:40 BackEndCoder afternoon
# Jan 29th 2014, 21:40 FreefallGeek Afternoon all.
# Jan 29th 2014, 21:39 optimator humm, it's not because if I fubar the file name I don't get an error
# Jan 29th 2014, 21:39 BackEndCoder you can always enter a label manually and disable the default label
# Jan 29th 2014, 21:39 BackEndCoder show me some code star_prone
# 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),