üͳê½f[^Ì`FbNû@ÉÖµÄÍA
http://manual.cakephp.org/chapter/12�}�}É��ë��ëྪ èÜ·Bú{êÖWÌàÌÍA©ªÅ��ë��ëÝèÅ«Ü·B
ÅA�}�}ÅÝèµ½`FbN[ªÇ�}Åp³êé©AÆ��¤ÆA
PjãLÌ}j
AÉ éæ¤ÉA
@@@ if($this->Post->validates($this->data))
Æ·êÎA$this->data Åçê½üÍf[^ªAPost fÌÝè[ÉKµÄ��é©`FbNÅ«Ü·B³µ¯êÎ true ªÔÁÄ«Ü·B
�}êÍAfÉ é\bhÅ é�}ÆÉÓB
Qj»ê¼êÌlÌÇêªï¿½N©µï¿½ï¿½Ì©²¸EÝè³¹éÉÍA
@@@@$this->validateErrors($this->User);
@ƵܷB�}êÍAgRg[Ì\bhhÅ é�}ÆÉӵܵå¤B�}ÌìÆÅÍA éfÌf[^ðÐÆÂêÂ`FbNµA[É ÄÍÜçÈ��à̪ êÎA»ÌgXCb`ðp`bÆüêéhæ¤È®ìðµÜ·BÂÜèÍAfÌ invalidate Æ��¤\bhðÀsµA$this->validationErrors[$field] Æ��¤zñð 1iXCb`EIIjÉÝèµÜ·B
Rj$this->Property->save($this->data['Property'])
ÈÇÌæ¤ÉµÄAfÌsave\bhiüͳê½f[^j
ðÀs·éÆA©®IÉ validateErrors Ì`FbNª©©èÜ·BiQƯ��Bj��IÉÛ��µ½ï¿½ï¿½êÉÍA
$this->Property->save($this->data['Property'], false)
Æ·êÎA`FbNð³Å«Ü·B
Sj©OÅAg�}Ìl;߾æ`FbNhðµ½ï¿½ï¿½êÉÍA
if(`FbNªÊçÈ©Á½ê){
$this->User->invalidate('username');@//gG[XCb`hðONB
}
Æ·êÎA username Æ��¤tB[hÌf[^ÍÊçÈ©Á½ï¿½}ÆÉÈèÜ·B�}�}Å¡ðÅ`FbNµ½ï¿½ï¿½AG[bZ[WðϦ½ï¿½ï¿½AÈÇÌêÉÍAusername_hiragana ÈÇÌæ¤ÉA©ªÅèÉìÁĵÜÁÄåävÅ·B
TjView ÅÌG[\¦
@@@$html->tagErrorMsg('Post/title', '^CgðLüµÄ¾³ï¿½ï¿½')
@@Æ��¤`ðg��ܷBá¦ÎãÌêÉÍA"Postf[^ÌtitleÆ��¤¼OÌtOªï¿½ï¿½ÁÄ��êÎAG[ð\¦·é"Æ��¤ï¿½}ÆÉÈèÜ·B
�}¯ÄA
@@@$html->tagErrorMsg('Post/title_hiragana', '^CgÍÐçªÈÅLüµÄ¾³ï¿½ï¿½')
ÈÇàÀ�~Ä�N¯ÎA $this->Post->invalidate('title_hiragana')@ðµÄ��½êÉÍ\¦³êé�}ÆÉÈèÜ·B
¿ÈÝÉA
E Model NXÌÉÍA
@@validates,@@@@`FbNªÊÁ½ç True ðÔ·B
@@invalidFields,@@`FbNÉøÁ©©Á½zñðÔ·B
@@invalidate@@@@`FbNªÊçÈ©Á½ éÚÌXCb`ðnmB
Æ��¤\bhB
E Controller NXÌÉÍA
@@validate, G[ÌghðÔ·B
@@validateErrors@@G[Ì éf[^ð²¸AXCb`ðüêÄäB
Æ��¤\bhB
Æ��¤ÄñÈé½ßª èÜ·ÌÅAg��ª¯Éӵܵå¤B
@@
@