CakePHPã¾ã¨ã CakePHPæ å ±ã®ã¾ã¨ã ããããã¼ã¸ãã¼ã¸ä¸è¦§ã¡ã³ãã¼ç·¨é Validation(ããªãâã·ã§ã³) æçµæ´æ°ï¼ tech5963 2009å¹´09æ24æ¥(æ¨) 14:22:00å±¥æ´ Tweet Validation(ããªãâã·ã§ã³) ããªãã¼ã·ã§ã³ã®è¨å®ã¯Modelå ã®$validateé åãå®ç¾©ãã¦è¡ãã save()ã®å®è¡æã«èªåçã«ããªãã¼ãã®ãã§ãã¯ãè¡ã ããªãã¼ã·ã§ã³å®ç¾©ä¾ <?php class User extends AppModel { var $name = 'User'; var $validate = array('ãã£ã¼ã«ãå' => 'ã«ã¼ã«å'); } ?> åç´ãªããªãã¼ã·ã§ã³ 'ãã¼ã«ãå' => 'ã«ã¼ã«å'ã®é£æ³é åã§OK var $validate = array( 'login' => 'alphaNumeric', '
{{#tags}}- {{label}}
{{/tags}}