Created
February 10, 2011 22:10
-
-
Save veganista/821459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->loadModel('RoundLength'); | |
$this->set('round_lengths', $this->RoundLength->find('list')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $hasMany = array( | |
'Round' => array( | |
'className' => 'Round', | |
'foreignKey' => 'round_length_id', | |
'dependent' => false, | |
'conditions' => '', | |
'fields' => '', | |
'order' => '', | |
'limit' => '', | |
'offset' => '', | |
'exclusive' => '', | |
'finderQuery' => '', | |
'counterQuery' => '' | |
) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $belongsTo = array( | |
'RoundLength' => array( | |
'className' => 'RoundLength', | |
'foreignKey' => 'round_length_id', | |
'conditions' => '', | |
'fields' => '', | |
'order' => '' | |
) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//debug($round_lengths); //this debug shows an array of my round lengths | |
$session->flash(); | |
echo $this->Form->create('Round', array('action' => 'add'), array('class' => 'mini-form')); | |
echo $this->Form->input('round_length_id'); //this keeps coming up as an empty select list | |
echo $this->Form->end('Start Round'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment