Created
December 10, 2014 21:02
-
-
Save Marian0/39a3f7467808f0b0a829 to your computer and use it in GitHub Desktop.
CakePHP - Load model, find data, send to view
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('Area'); | |
$data = $this->Area->find('list'); // OR ALL TO GET ALL ATTRIBUTES | |
$this->set('areas', $data ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment