Created
February 27, 2016 14:25
-
-
Save cakephp-tutorial/6bbdf4bb757ba4fe70e9 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
<?php | |
$resultset = $ModelName->find('all', array( | |
'recursive' => '1', | |
'contain' => 'Model', | |
'fields' => array( | |
'Model.field', | |
'OtherModel.field', | |
), | |
'conditions' => array( | |
'Model.id' => 3, | |
) | |
),array('cache' => 'Nomefilecache', 'cacheConfig' => 'short')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment