Created
January 12, 2015 15:36
-
-
Save cpierce/7f471a0ea32fbc310e49 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
class SponsorDivisionsController extends AppController { | |
public function index() { | |
$this->SponsorDivision->Behaviors->load('Containable'); | |
$sponsordivisions = $this->SponsorDivision->find('all', array( | |
'contain' => array( | |
'Sponsor', | |
), | |
'order' => array( | |
'SponsorDivision.SponsorDivision' => 'asc'), | |
), | |
); | |
debug($sponsordivisions); | |
$this->set(compact('sponsordivisions')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment