Category | CakePHP functions - find |
Code Examples | find() function applies to the model. Example: function index() { $this->set('posts',$this->Post->find('all')); } A more detailed example: $this->Post->find('all', array('conditions'=>array('User.id'=>1), 'fields'=>'Post.name', 'order'=>'Post.id ASC', 'limit'=>10, 'recursive'=>0 ) ); |
Test Code | |
Links | |
Remarks | |
Cancel |