CakePHP
formãã«ãã¼ã§æ®éã«æ¸ãã¦ãã¾ãã¨ã西æ¦ã¯éé ã§è¡¨ç¤ºããã¾ãããã dateTime('date','YMD',null,null,array('minYear'=>'1971','maxYear'=>'2000')); ?> ãã ãçå¹´ææ¥ã®å ¥åãªã©æé ã§è¡¨ç¤ºãããããªã±ã¼ã¹ãå¤ãã¨æãã¾ããã©ãããã°ããã®ããªã¼ã¨â¦
JSONã§ã·ãªã¢ã©ã¤ãºããã¦ããAPIãããããããªã¢ãã«ãä½ã£ã¦ã¿ã¾ããããã¼ã«ã«ã«é ç½®ãã¦ããJSONã®ãã¡ã¤ã«ã«ã対å¿ãã¦ãã¾ãã ãã£ãã·ã¥ãããããããªä»çµã¿ã«ãªã£ã¦ããã®ã§ãå¤æ°å©ããããªå ´åã«ãå¹æçã§ãã modelã®ä¸ã«ãjson.phpã¨ãããâ¦
cakephpã§è¤æ°ã®ããã¸ã§ã¯ããä½æããã¨ãããäºãã«modelãcomponentãå ±æãããã¨ãã¯ç¨ã«ããã¾ãããããã¨ãã°ãnanapiã®å ´åã§ãã¨PCçã¢ãã¤ã«çããã£ãããã¾ãã ãããªæãããã¸ã§ã¯ãã¯å¥ã«ãããã©ä¸é¨å ±æãããmodelãã§ã¦ãã¾ããæåã¯â¦
nanapiã®ã·ã¹ãã ã§ä¸é¨ä½¿ãå¿ è¦ããã£ãã®ã§ãã¡ãã£ã¨ãã£ã¬ã³ã¸ãã¦ã¿ã¾ããã Google Analytics APIã£ã¦ã¡ãã£ã¨é¢åãããªã¤ã¡ã¼ã¸ããã£ãã®ã§ä»ã¾ã§æ¬é ãã¦ããã®ã§ãããã¾ããããè¨ã£ã¦ããããªãã£ãããã§ããæ¥æ¬èªããã¥ã¡ã³ããããã¨å¬ããâ¦
ãæ軽ã«ã¤ãããæ¤ç´¢ã¨ã³ã¸ã³ã¨ãã¦ãSennaï¼MySQLã§ä½ãããToritonnãããã¾ããã å¼ç¤¾ã®Webãµã¼ãã¹ãnanapiãã§ãæ¤ç´¢ã¨ã³ã¸ã³ã«ã¯ãToritonnã使ã£ã¦ãã¾ããMySQLãã¼ã¹ãªã®ã§ãCakePHPã®ActiveRecordãã¤ããã¦ä¾¿å©ã§ãããã ãToritonn使ãã¨ãã¯Sâ¦
CakePHPã«ã§ãåViewãã親ã¨ãªãLayoutãã¡ã¤ã«ãã¡ãã£ã¨ãããããã¨ãã¯ã¾ãã«ããã¨æãã¾ããJavascriptãã¡ã¤ã«ããCSSãã¡ã¤ã«è¿½å ãããããã¨ãã¯ç°¡åã§ããããããå¤æ°ãã»ãããããã¨ããã¾ãã§ããå°ã£ã¦ãã¾ããã ãããã¡ãªä¾ã¨ãã¦ã¯ã以â¦
routes.phpã§æ¸ããã«ã¼ãã£ã³ã°ãã$html->linkãªããã§éã«ã¼ãã£ã³ã°ã§ããã®ã¯ãªããªã便å©ã§ãããããµã¼ãã¹ã§ä½¿ãããURLãå¾ãã決ãããã£ã¦ã¨ãããroutes.phpãå¤æ´ããã ãã§ç°¡åã«å¯¾å¿ã§ãã¦ãã¾ãã¾ãã ããããnamed parameterã使ã£ãæã«â¦
http://www.exgear.jp/blog/2008/11/cakephp12-behavior%E3%81%A7%E3%83%A2%E3%83%87%E3%83%AB%E3%81%AE%E3%83%A1%E3%82%BD%E3%83%83%E3%83%89%E3%82%AD%E3%83%A3%E3%83%83%E3%82%B7%E3%83%A5%E3%82%92%E8%A1%8C%E3%81%86/ ãã¡ãã§ç´¹ä»ããã¦ãããbehaviorâ¦
CakePHPã§ãfindããçµæãidããã¼ã«ãã¦é åã«ããªããã¨ããä½æ¥ã¯å²ã¨ããä½æ¥ãã¨æãã¾ããæ®éã«ã«ã¼ãããã¦çµãã¨ä»¥ä¸ã®ãããªæãã§ããããããã¼ãã«ã¯ä¸è¨ã®ãããªæãã§ã +-------+--------------+------+-----+---------+----------------+ â¦
éå»ã«ããã£ã¦ãã¨ãæãåºããã®ã§ãã¡ã¢ã CakePHPã§ãControllerããViewã¸å¤ã渡ãã¨ãã¯setã¡ã½ããã使ãã¾ãã è¤æ°ã®å¤ã渡ãã¨ãã¯ããªãã©ãsetããã®ã¯ã³ã¼ãã®è¦éããæªããªãã®ã§compactã使ã£ã¦ä¸æ°ã«ã»ããããããã¾ãããµã³ãã«ã¯ä»¥ä¸ã®â¦
CakePHPã§å ±éã®è¨å®æ å ±ãæ¸ãå ´åã¯ãConfigure::writeã使ããã¨ãå¤ãã§ããé åã使ããã®ãä½ããã便å©ãå®éã«ä½¿ãã¨ãã¯ã以ä¸ã®ãããªæãã§ã â»èªåã¯ãapp/config/bootstrap.phpãããã§è¨å®ãããã¨ãå¤ãã§ãã Configure::write('foo',array(â¦
ãã¾ã¾ã§ã¯404ã®ã¨ã©ã¼ãããã§ãã使ã£ã¦ããªãã£ãã®ã§ãããErrorHandlerã«ç¬èªã¡ã½ããã追å ãã¦ã¿ããã§ããã§ããdebugã¬ãã«ã0ã«ãªãã¨ãªãã ãåããªããã§ãããã ãã§ãã£ã¦ãã³ã¼ããèªãã§ã¿ã¾ããããããã¨ã¾ãã³ã³ã¹ãã©ã¯ã¿ã®ä¸ã«ä»¥ä¸ã®â¦
nanapiã§ã®äºä¾ç´¹ä» 2009å¹´10æ30æ¥ã31æ¥ã«éå¬ãããCakeMatsuriTokyo2009ã§ãµã¼ãã¹ã®äºä¾ç´¹ä»ããã¦ã¾ããã¾ããã ä»åã®çºè¡¨ã¯ãnanapiã§cakephpã使ã£ã¦ããé¨åãããã®ã§ãã®ãããã®ç´¹ä»ããã¦ãã¾ããcakephpã¦ã¼ã¶ã¼ã¨ãã¦ã¯ã¾ã å年足ããã®åâ¦