CakePHPã1.2ã«ãªã£ã¦ãfindAllãéæ¨å¥¨ã«ãªã£ã¦find(âAllâ)ã«ç½®ãæãã£ãããã«ãfindHogeç³»ãªã¡ã½ããã¯å ¨é¨findã«éç´ãã¦ã第ä¸å¼æ°ã§ãã®selectã¿ã¤ããæå®ããããã«ä»æ§ãå¤æ´ã«ãªãã¾ãããæåã¯ãã®æµãã¯ã¡ãã£ã¨é¢åããããªãã¨ãæã£ãã®ã§ãããå®éã¯èªåã®é½åã®ãããããªã¿ã¤ããã©ãã©ã追å ãããããªã£ã¦ããã®ã§ããã®ä»æãã¯ãã¾ã使ãã°ããã便å©ã ãã¨ãã°ãã¿ã¤ãã«ã®ãããªãã®ãããUserãã¼ãã«ã®ä¸ããã©ã³ãã ã«50人åã®ã¬ã³ã¼ããåãåºãfind(ârandomâ)ã¨ãå®è£ ãããã¨ãã¯ãããªæãã <?php class User extends AppModel { var $name = 'User'; function find($type, $queryData = array()){ switch ($type) { cas
{{#tags}}- {{label}}
{{/tags}}