2009-01-01ãã1å¹´éã®è¨äºä¸è¦§
PHPã®ããã¥ã¢ã«ãè¦ã¦ãã¦æ°ä»ããã¨ã£ã¦æ¡å¤å¤ããä»æ¥ã¯Exceptionã®é ãè¦ã¦ãã¦ãã³ã³ã¹ãã©ã¯ã¿ã®ç¬¬3å¼æ°ã«PHP 5.3.0ããå¥ã®ä¾å¤ã渡ããã¨ãã§ããããã«ãªã£ãã®ãç¥ã£ãã getMessage(), $e->getCode(), $e); } ã¤ã¾ãããããããµãã«ä¾å¤ã®ã©ããâ¦
ä½ã£ã¦ãããã¬ã¼ã ã¯ã¼ã¯ãkarintoã®ååãå¤æ´ãLuneã«ãã¾ãããä¸æ¥æã¿ãããªãã¬ã¼ã ã¯ã¼ã¯ããªãã¸ããªã¨ãã¯ãã¤ãã®githubã§ãã http://github.com/hiroy/lune ã§ãããã¨ã¯karintoã¨å¤ããã¾ãããå®è£ ãµã³ãã«ã¨ãè¦ã¦ããã ããã°ããããªã¨ãâ¦
èªå® ã®MacãSnow Leopardã«ããããã¡ã°ãã³ã£ãããããã¨: icecube:~ hiro_y$ php -v PHP 5.3.0 (cli) (built: Jul 19 2009 00:34:29) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend TechnologiesPHP 5.3.0ãâ¦
PHPã®ãªã¼ããã¼ãã£ã³ã°ã§1ã¤æ°ã«ãªããã¨ããã£ãã®ã§å®é¨ã/test.php
æ°ãä»ãã°é·ããã¨æ¸ãã¦ã¾ããã§ããããkarintoã¯çµæ§å¤ããã¾ããã routingå®ç¾©ãæ示çã«æ¸ããªããã°ãªããªããªã£ã karinto::dispatch('/foo', 'myapp_foo'); ã¨ã routingå®ç¾©ã§æå®ããã®ã¯é¢æ°ã«éããcallbackåãªãOKã«ãªã£ã é¢æ°ã¯ãã¡ããOKâ¦
ããããPHP 5.3.0ã®ç°å¢ãWindowsä¸ã«ä½ã£ã¦ã¿ããã ãã©ãç¡åé¢æ°ã¯PHP 5.3.0ãã追å ãããClosureã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã«ãªãã¿ããã C:\>php -v PHP 5.3.0 (cli) (built: Jun 29 2009 21:25:23) Copyright (c) 1997-2009 The PHP Group Zend Engine vâ¦
ããã¦ã¾ããã¦ãå¿å¤ãããå®è¡ããé¢æ°åãPATH_INFOããèªåçã«æ±ºå®ããä»æ§ã«æ»ãã¾ãããroutingå®ç¾©ã¨ãé¢åãããããæ£è¦è¡¨ç¾ã§å®ç¾©ã¨ãè¤éãªãã¨ãããããªããã output('This is a test page.'); } // GET /foo function get_foo(karinto_requeâ¦
karintoã§ããããªãã¸ããªã®å ´æãGoogle Codeããgithubã«ç§»è»¢ãã¾ããã http://github.com/hiroy/karinto/tree/master ãã®éã«ä»æ§ãå¤æ´ãã¦ãPATH_INFOããå®è¡ããé¢æ°åãèªåçã«æ±ºå®ããæ¹å¼ãããå®è¡ããé¢æ°åããããããå®ç¾©ãã¦ãããªãã¦â¦
ãã®ããåçâããåã®ããã®åçæ室ä½è : ãã³ãã¿ã«ã·åºç社/ã¡ã¼ã«ã¼: å¹³å¡ç¤¾çºå£²æ¥: 2009/05/01ã¡ãã£ã¢: åè¡æ¬è³¼å ¥: 17人 ã¯ãªãã¯: 159åãã®ååãå«ãããã° (100件) ãè¦ããã®æ¬ããããæ°ã«ãªã£ã¦ããå¤åè²·ã£ã¦ãã¾ãæ°ããããæè¿åçãæ®å½±â¦
è¿·èµ°ã°ã£ãããã¦ã¾ããã©ãLimonadeã¨ãè¦ã¦ã¦ãé¢æ°ãã¼ã¹ãæªããªããããã¨ãæã£ãã®ã§karintoãåã³é¢æ°ã§å®è£ ãæ¸ãã¦ããæãã«æ»ãã¾ãããã¯ã©ã¹ã¨ãæ¸ããªãã¦ããã§ãã次ã®ã³ã¼ãã§ã/index.php/fooã表示ãã¾ãã/index.php message = 'Hello â¦
[rakuten:sakeishikawa:10000196:detail]ãªãããã®ã¨ã¼ã«ãæ°ã«ãªãã®ã§ããè¿æã®ã¹ã¼ãã¼ã¨ãé å±ãããã売ã£ã¦ãªããããããã±ã¼ã¸ãã¶ã¤ã³ãç´ æµã
ã¢ãã¾ã³APIã使ãã®ã«2009å¹´8æ15æ¥ããèªè¨¼ãå¿ è¦ã«ãªãããã Amazonã®APIã使ãå ´åã«èªè¨¼ã³ã¼ããå¿ è¦ã«ãªã件ã ãã©ãHMACSHA256ã ããPHPã ã¨ããã ãã
å°ãå¤ãã£ãåããã¾ãä½è : 森åå£åºç社/ã¡ã¼ã«ã¼: æèæ¥ç§çºå£²æ¥: 2007/11ã¡ãã£ã¢: æ°æ¸è³¼å ¥: 1人 ã¯ãªãã¯: 20åãã®ååãå«ãããã° (52件) ãè¦ãèªãã ããã©èªã人ãé¸ã³ãããªä½åãããã©ã¡ããã¨è¨ãã¨ã²ã¨ãã§ãããã¨ã好ãã§ãæ¸è°·ã¨ã人â¦
PHPã®ãªãã¬ã¯ã·ã§ã³ã£ã¦ä½¿ããã¦ãã®ããªãPHPã®ããã¥ã¢ã«ã§ããããã¥ããå ´æã«è§£èª¬ããã£ã¦ã決ãã¦éè¦è¦ããã¦ãæããããªããã¡ãªã¿ã«ãkarintoã§ã¯ã¡ã½ããã®å¼æ°ã®åæ°ã«å¿ãã¦karinto_sessionã®ã¤ã³ã¹ã¿ã³ã¹ãçæãããã©ãããå¤æãã¦ããç®â¦
PHPã®ã¿ã¤ããã³ãã£ã³ã°ã£ã¦ã©ãã¾ã§ãã¡ãã¨æ¸ããã®ãªã®ã ãããåå空éããªãã¨ããå¶ç´ããã«ãã©ããã¦ãé·ããªã£ã¦ãã¾ããã¡ãªPHPã®ã¯ã©ã¹åãã¡ã½ããã®å¼æ°ã§ãã¡ãã¨ã¿ã¤ããã³ãã£ã³ã°ãè¨è¿°ããã°ãã®ãããé·ãè¨è¿°ã«ãªã£ã¦ãã¾ãããã¯ã©ã¹â¦
å¾æ¥karintoãå©ç¨ããããã«ã¯ãªã¯ã¨ã¹ãã¡ã½ããã¨PATH_INFOããã¼ã¹ã«ããååã®é¢æ°ãä½ãå¿ è¦ããã£ãããå ±éå¦çãç¶æ¿ã¨ã使ã£ã¦ãããããããããããåãURLãæ±ãã®ã¯åãã¹ã³ã¼ãã«ããã¹ãããããã¨ãããã¨ã§ã¯ã©ã¹ãä½ãããã«å¤æ´ãã¾ããâ¦
æ°ã¸ã£ã¬ã®ããããå£ç¯ã§ãããã¨ãããã¨ã§ã¸ã£ã¬ã¤ã¢ã¨çä¹³ã§ã¹ã¼ããä½ã£ãã家æã«å¥½è©ã ã£ãã®ã§ä½ãæ¹ãã¡ã¢: ã¸ã£ã¬ã¤ã¢ã¯èåãã«ãã¦é»åã¬ã³ã¸ã§ããããããã ããããããªã£ããããã·ã£ã¼ã§ã¤ã¶ã ããã§è£æ¼ãã¨ãªãããã«ãªããã©é¢åãªãâ¦
ç¹é:ã¯ãªã¨ã¤ãã£ãã»ã·ã³ãã·ãªã³2009 (åºåæ¹è© 336å·)åºç社/ã¡ã¼ã«ã¼: ããã©åºççºå£²æ¥: 2009/04ã¡ãã£ã¢: åè¡æ¬è³¼å ¥: 3人 ã¯ãªãã¯: 21åãã®ååãå«ãããã° (34件) ãè¦ããåºåæ¹è©ãã®æçµå·ãèªãã§ãããæã«ãµãããããèªãã§ããéèªãçµâ¦
karintoãé¢æ°å®è£ ããã¯ã©ã¹å®è£ ã«å¤ãããã¨ãä½ã¨ãªãèãã¦ããã name = $req->name; $res->render(); } ä»ã¾ã§ä¸ã®ããã«æ¸ãã¦ããå®è£ ãã次ã®ããã«æ¸ãããã«ãããããªã¨ãã name = $req->namâ¦
æ¥çµã®å¤åã«å¯éç±æ å£å¾¡å¤§ã®ã¤ã³ã¿ãã¥ã¼åºã¦ãã è¥è ã¯ãªãµã¤ã¯ã«ããããã£ã¦ããããé »ç¹ã«ç©ãè²·ãæ¿ããªããä¸æ¹ã§å¤§äººã¯ãå³è©ä¸ããã§é ç¹ãç®æãçµæ¸æé·ã大éçç£ã»å¤§éæ¶è²»ã®è¨å¼µæåã®æ £ç¿ããæãåºããªãã大人ã¯ç¸å¤ããããä»ã®è¥ãè ã¯â¦
æ°å¦æ (æ²³åºæ庫)ä½è : é·éã¾ãã¿åºç社/ã¡ã¼ã«ã¼: æ²³åºæ¸æ¿æ°ç¤¾çºå£²æ¥: 2009/03/04ã¡ãã£ã¢: æ庫 ã¯ãªãã¯: 12åãã®ååãå«ãããã° (12件) ãè¦ãæ庫ã«ãªã£ãã®ã§é·éã¾ãã¿ã®ãæ°å¦æããèªãã ãé£éä¿å²ã«ãã解説ãè¥å¹²åé·ã§ã¯ãããé¢ç½ãã â¦
ãèªåã®ä»äºãã¤ããããæ庫ã«ãªã£ã¦ãã®ã§è²·ã£ã¦ãã¦èªãã ãããã¯ãããããã®ãèãããã£ããã«ãªãããæ¬ãèªåã®ä»äºãã¤ãã (ã¡ãã¾æ庫)ä½è : 西æä½³å²åºç社/ã¡ã¼ã«ã¼: çæ©æ¸æ¿çºå£²æ¥: 2009/02/01ã¡ãã£ã¢: æåº«è³¼å ¥: 23人 ã¯ãªãã¯: 609åãâ¦
ãªãã¦ãã¨ãæ¸ãã¦å®éã«dbã¨cacheã®ã¯ã©ã¹ãåé¤ãã¦ä¸æ¦ã³ãããã¾ã§ãããã ãã©ãã¾ããã£ã±ãå¿ è¦ã ãªãã¨æã£ã¦å¾©æ´»ããã¾ããããã©ã°ã¤ã³æ©æ§ãä½ã£ã¦å¤åºãããããã¨ãèããã®ã§ãããã©ã®ãã©ã°ã¤ã³ä½¿ãã宣è¨ãã¦ãå¿ è¦ãªã¤ã³ã¹ã¿ã³ã¹ãçæãâ¦
karinto_dbã¨karinto_cacheã®ã¯ã©ã¹ãå»æ¢ãkarintoã¯ã©ã¹ã«ä¸éå端ã«åå¨ãã¦ãvalidationã¡ã½ããã2ã¤å»æ¢ãã¾ããã好ããªã®ãé¸ã¹ãæ¹ããã£ã±ãããã¨æãããçµå±èªä½ãããã¨ã«ãªãé¨åã§ãããã¨æãããããããªããã§ãkarintoã¯ãªã¯ã¨ã¹ãã¨ã¬â¦
大æï¼ã°ããã§ã¯ãªãã§ããããï¼SIer ããããã¾ã«ãããã©ãã«ãå ¬éãã¦ããªãå ä½ãã¬ã¼ã ã¯ã¼ã¯ï¼ä»åã¯ãJava ã® Web ã¢ããªã±ã¼ã·ã§ã³ç¨ã®ãã®ã念é ã«ããã¾ãï¼ã§ããã¸ã§ã¯ããããããã®ã¯ãããããªã¹ã¯ããããã§ããã©ãèæ ®ãã¦ã¾ããï¼ ã£â¦
ã¤ã¾ãBã¨Hã£ã¦ãããã¾ã£ããå¥ã¢ãã®ã©ã¤ã³ãæåã«ãã£ã¦ããã®éã®æ¿ããåããéç¨ã®ä¸ã§HBãçã¾ããããã«Fãçã¾ãããæ¿ãã¨ãã¦ã¯HHBãªãã ãã©ã3æåã§ã®è¡¨ç¤ºã¯ã¹ãã¼ããããªãããããæ°ããFã£ã¦è¨å·ãä½ãããã£ã¦ããã ããããã¦ã19ä¸ç´â¦
ã¹ã«ã¤ã»ã¤ã¯ãªãã¹âSky Eclipse (ä¸å ¬æ庫)ä½è : 森åå£åºç社/ã¡ã¼ã«ã¼: ä¸å¤®å ¬è«æ°ç¤¾çºå£²æ¥: 2009/02/01ã¡ãã£ã¢: æåº«è³¼å ¥: 4人 ã¯ãªãã¯: 23åãã®ååãå«ãããã° (63件) ãè¦ãèªãã ããã¹ã«ã¤ã»ã¯ãã©ãã·ãªã¼ãºãè£å®ãããããªçç·¨éããã¿ã°ãâ¦
ããããã°æ¸ãã¦ãªãã£ããã©ãkarintoã¯å®è£ ã1ãã¡ã¤ã«ã§ã¯ãªãé¢æ°å¥ã®ãã¡ã¤ã«ã«ãããã¨ãã§ããããã«ãã¦ããã¾ããkarinto::$function_dirãæå®ãã¦ãããã«é¢æ°åã¨ååã®PHPãã¡ã¤ã«ãé ç½®ãã¦ãããã°OKãã¨ã³ããªãã¤ã³ãã§ã¯karintoã®èµ·åã â¦
åæãã³ã·ã§ã³ 4 (IKKI COMIX)ä½è : 岩岡ããµã¨åºç社/ã¡ã¼ã«ã¼: å°å¦é¤¨çºå£²æ¥: 2009/01/30ã¡ãã£ã¢: ã³ããã¯è³¼å ¥: 4人 ã¯ãªãã¯: 14åãã®ååãå«ãããã° (52件) ãè¦ãèªãã ããã®äººã®ä½åã¯çµµã¨ä¸ç観ãæ¬å½ã«ããããã¦ãã¨æãã好ããªä½å®¶ããã®â¦
ä¸æçã«ã¡ãã»ã¼ã¸ãæ ¼ç´ãããå ´åã¯ããã¨æãã®ã§ãkarinto_sessionã«flashã¨ããååã§å¤ãä¿åããã¨æ¬¡ã«åãåºããã¨ãã«ãã®å¤ãèªåçã«ç ´æ£ããããããªä»çµã¿ãç¨æãããflashã¡ã½ãããç¨æãã¦ãããã£ãã®ã ããæ¬æ¥å¤ç¨ãããã¹ãã§ã¯ãªãæ©â¦