ããç¥æ¥ã - ã¯ãªã¹ãã¹ã±ã¼ãããå±ããã¾ã - CakePHP 2.0éçºçããªãªã¼ã¹ããã¾ãã(訳)
By markstory
CakePHPã³ã¢ãã¼ã ã¯CakePHP 2.0.0-devããããªã«ãæ©ããè¦ãã§ãããã¨ãèªãã«æãã¾ããããã¯2.xãã©ã³ãã®æåã®ããã±ã¼ã¸ãªãªã¼ã¹ã¨ãªãã¾ãã2.0.0-devãªãªã¼ã¹ã¯å¾æ¹éäºæãªå¤æ´ã¨æ°æ©è½ãå¤ãããã¾ããããã¦ãã¾ã åç¨å©ç¨ã§ããããã«ã¯ãªã£ã¦ãã¾ãããä¸çªå¤§ããéäºæãªå¤æ´ã¯ãCakePHP 2.0.xãå°ãªãã¨ãPHP 5.2.6ãå¿ è¦ã¨ããã¨ãããã¨ã§ãã PHP4åã³5.2.6æªæºã®PHP5ã®ãµãã¼ãã¯æã¡åããã¾ããã
æ°æ©è½
以ä¸ã¯CakePHP2.0ã®æ°æ©è½ã«é¢ããå®å ¨ãªãªã¹ãã§ã¯ããã¾ããããããã¾ã§ã®ãã¤ã©ã¤ãã¯å«ã¾ãã¦ãã¾ã:
- ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦PHPUnitã®æ¡ç¨ãPHPUnitã¯ã¦ããããã¹ãã®ããã¡ã¯ãã¹ã¿ã³ãã¼ãã§ãããCakePHPã仲éå ¥ãã«ãªãã¾ããå¤ãã®å¾æ¹äºææ§ã®ãã追å è¦ç´ ãããã®ã§ãããªãã®ãã¹ãã(訳注:2.0ç¨ã«)ä¿®æ£ãããã¨ã容æã§ãã
- ãªã¯ã¨ã¹ãã¨ã¬ã¹ãã³ã¹ã®ãªãã¸ã§ã¯ãã¸ã®åå² - å¿ è¦ã¨ããæ å ±ã«ã¢ã¯ã»ã¹ãããã¨ããã¹ããä½æãããã¨ã容æã«ã§ããããã«ãªãã¾ãã
- ã¢ã½ã·ã¨ã¼ã·ã§ã³ã¢ãã«ã®Lazy loading - é¢é£ä»ããããã¢ãã«ã¯ããããå¿ è¦ã¨ãããã¨ãã®ã¿èªã¿è¾¼ã¾ãã¾ããããã¯å·¨å¤§ãªã¢ããªã±ã¼ã·ã§ã³ã®ã¡ã¢ãªä½¿ç¨éã¨ããã©ã¼ãã³ã¹ãèããå¼ãä¸ãã¾ãã
- ãã«ãã¨ã³ã³ãã¼ãã³ãã®Lazy loading - ãã«ãã¨ã³ã³ãã¼ãã³ãã¯å¿ è¦ãªã¨ãã®ã¿èªã¿è¾¼ã¿ã»åæåããªãããããã©ã¼ãã³ã¹ãåä¸ããã¾ãã
- æ°ããã³ã³ã½ã¼ã«ãã¬ã¼ã ã¯ã¼ã¯ - ã³ã³ã½ã¼ã«ã®æ çµã¿ã¯ãã³ã³ã½ã¼ã«ãããæè»ã«ãããå¼·åã«ãããã«ã©ãã«ï¼è¨³æ³¨ï¼!!ï¼ã«ä½ãç´ããã¾ããã
- ä¾å¤ã¨ã¨ã©ã¼ - CakePHPã¯ä¾å¤(Exception)ãå é¨ã§ä½¿ç¨ãããã¨ã«ãã£ã¦ãéçºè ãã¢ããªã±ã¼ã·ã§ã³ã§ã¨ã©ã¼ã¨ä¾å¤ããé«ãæ¡å¼µæ§ã¨è¨å®ã®å¯å¤æ§ããã£ã¦æ±ããããã«ãã¾ãã
wikiãã¼ã¸ã®æ°æ©è½*1ã§ããå¤ãã®CakePHP 2.0ã®å ¨ã¦ã®æ©è½ãè¦ããã¨ãã§ãã¾ããåè¿°ã®éããå¤ãã®å¾æ¹éäºæãªå¤æ´ãCakePHP2.0ã«ã¯ããã¾ããã³ã¢ãã¼ã ã¯2.0移è¡ã¬ã¤ã*2ã«ãããå ¨ã¦ãéæããã¥ã¡ã³ãåãã¦ãã¾ãã
ããéçºä¸ã®CakePHP 2.0ã®å©åã«èå³ãããã¾ããããããã¤ãã®æ¹æ³ãããã¾ããã³ã¼ããå®è¡ãã¦ãè¦ã¤ããåé¡ã®ãã±ããã®ãªã¼ãã³ã»ãã¹ãï¼ãããã®æä¾ããããã¨ãã§ãã¾ãããããã¨ãã¹ãã±ã¼ã¹ã®ä½æã«ãã£ã¦ãæ¢ã«åå¨ããæãä»ãããã¦ãªããã±ãã*3ã®ã¯ãã¼ãºãæä¼ããã¨ãã§ãã¾ããã¾ããå¤ãã®ä»æ§ã«é¢ããæè¦ãæ°æ©è½ã«ã¤ãã¦ãlighthouseï¼è¨³æ³¨ï¼CakePHPのwikiã®ãã¹ãï¼ã§ãã±ããã«æ å ±ãæè¦ãä¸ãããã¨ãã§ãã¾ãã
ãã®ç´ æµãª1å¹´ã«ããããCakePHPã³ãã¥ããã£ã®å ¨ã¦ã®äººã«æè¬ãã¾ããæ¯ãè¿ã£ã¦ã¿ãã¨ã2010å¹´ã¯å°è±¡çãªå¹´ã§ãããCakePHP1.3.0ã®ãªãªã¼ã¹ãè¿ããè¨10ã®ãªãªã¼ã¹ã1å¹´ã®ãã¡ã«ããã¾ãããç´ æ´ãããã«ã³ãã¡ã¬ã³ã¹ãã·ã«ã´ã§ãããæ°åã®ããã¥ã¡ã³ããç·¨éãããæ¥æ¬ã³ãã¥ããã£ã§ã®ã¢ããã³ãã«ã¬ã³ãã¼*4ãå«ãæ°ãåããªãããã°è¨äºãããã¾ããããããå ¨ã¦ã®ç´ æ´ããããã®ã«å ããç§éã¯bakeryã®åãªãªã¼ã¹ã¨http://tv.cakephp.org/ã®ç«ã¡ä¸ãããããã¨ãã§ãã¾ãããä»å¹´ã¯ãCakePHPã®ãã¤ç´ æ´ãããã³ãã¥ããã£ããªããã°å¤§ããªå¹´ã¨ã¯ãªããªãã£ããã¨ã§ããããä»å¹´ãç´ æ´ãããå¹´ã«ãã¦ãããå ¨ã¦ã®äººã«æè¬ãæ§ãã¾ãã
ã-- 訳ããã¾ã§
å¾æ¸ã
Bakeryã®ãªãªã¼ã¹è¨äºã®è¨³ã§ãã
http://bakery.cakephp.org/articles/markstory/2010/12/26/happy_holiday_yule_cake_-_cakephp_2_0-dev_released
CakePHP2.0éçºçãè¯ããã¼ã¹ã§é²ãã§ãã¦ã¨ã¦ãè¯ãã£ãã§ãããã³ã·ã§ã³ä¸ãã£ã¦ãã
ã®ã§ãå¹´æ«å¹´å§ã«wikiã®ç¿»è¨³ããã¾ããã¾ãããã§åç¥ãã¾ãããããããé¡ããã¾ãã
*1:[http://cakephp.lighthouseapp.com/projects/42648/20-new-features
*2:http://cakephp.lighthouseapp.com/projects/42648/20-migration-guide
*3:http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/bins/228812
*4:http://cakephp.jp/modules/newbb/viewtopic.php?viewmode=flat&topic_id=2510&forum=16