2008-01-01ãã1å¹´éã®è¨äºä¸è¦§
CodeIgniterã§ãéã³ã¢ããªãä½ãï¼åç®ãä»æ¥ã¯ãã£ãã·ã¥æ©æ§ãä½ããã¤ãã¼APIã¸ã®åãåããåæ°ãåæ¸ããã ã¤ãã§ã«ãCodeIgniteræ¨æºã®ãã¼ã¿ãã¼ã¹ãã£ãã·ã¥ã¯ã©ã¹ã使ã£ã¦ã¿ãã ï¼APIã®ä»æ§ã¯ãããã¸ã http://developer.yahoo.co.jp/ ï¼ç¾å¨ã®â¦
CodeIgniterã§ãéã³ã¢ããªãä½ãï¼åç®ãä»æ¥ã¯æ¥æ¬èªå½¢æ ç´ è§£æã使ã£ã¦é¢é£ãã¼ã¯ã¼ãæ½åºæ©è½ãå ¥ãã¦ã¿ãã ã ãã ãå½¢ã«ãªã£ã¦ãããï¼æ¥æ¬èªå½¢æ ç´ è§£æAPIã®ä»æ§ã¯ãã http://developer.yahoo.co.jp/webapi/jlp/ma/v1/parse.html ï¼ é¢é£ãã¼ã¯ã¼ãâ¦
CodeIgniterã§ãéã³ã¢ããªãä½ãï¼åç®ãä»æ¥ã¯ãã¼ã¸ãã¼ã·ã§ã³å¦çãå ¥ãã¦ã¿ãã ï¼ãã£ãã·ã¥æ©æ§ã¨ãã¯ã¾ã ãï¼ ãã¼ã¸ãã¼ã·ã§ã³å¦çã¯CodeIgniterã®ãã¼ã¸ãã¼ã·ã§ã³ã¯ã©ã¹ã使ã£ãã æ¤ç´¢æ¡ä»¶ã®ä¿æã¯ããããã¦éè¦ãªæ å ±ã§ããªãã®ã§hiddenã§ããâ¦
ä¸æ¨æ¥ã®ã¨ã³ããªã¼ ãCodeIgniterã§ã¤ãã¼ã®ç»åæ¤ç´¢apiã¨å½¢æ ç´ è§£æapiãçµã¿åããã¦ãéã³ã¢ããªãä½ããã¨ã«ããã ã®ç¬¬äºåç®ãä»æ¥ã¯åãããããåç´ãªç»åæ¤ç´¢ãåºæ¥ãããã«ãã¦ã¿ããååãã10%ãããé²æãï¼ãã£ãã·ã¥æ©æ§ã¨ããDBæ ¼ç´ã¨ããâ¦
ä»æ¥ã¯CodeIgniterã§ãããç¹å®ã®ã³ã³ããã¼ã©ã¯ãç¹å®ã®ipã¢ãã¬ã¹ããã®ãªã¯ã¨ã¹ãã®ã¿ãåãä»ãããããªå¶éã追å ãã¦ã¿ãããããç°¡åãªãã¿ã ï¼æ¨æ¥ã®ãã¿ã¯é ã ã¨ãã¦é²è¡ä¸ï¼ç®çããç¹å®ã®æ©è½ã¯ èªåã®ãµã¼ãèªèº« ããåºå®ipã¢ãã¬ã¹ ã ãã«ä½¿ãâ¦
ååwikiã®ç§»æ¤ãé¢åããããªã£ã¦æ¾ãåºããã®ã§ã代ããã« CodeIgniterã§ã¤ãã¼ã®ç»åæ¤ç´¢apiã¨å½¢æ ç´ è§£æapiãçµã¿åããã¦ãéã³ã¢ããªãä½ããã¨ã«ãããæãè¦ã¦ä¸æ¥å°ããã¤æ¸ãã¦ãããã¨ã«ããã ä»æ¥ããã®ã¨ã³ããªã¼ã¯ãä½ã£ãã³ã¼ããå°ããã¤è²¼â¦
ãã¼ããã½ã¼ã¹ã触ã£ã¦ãããã¹ãã²ããã£ã¼ãããã®ã§ããã£ã±ãæ¡å¼µã¨å ¬éã¯æ¢ãããã¨ã«ãã¾ããã è¦æ¸¡ãããããªããããï¼ãã®ç¶æ ã§å ¬éããã®ã¯è¯ããªãæ°ãããã®ã§ã ãã¨ãããã£ã¦ã¿ãããã£ã¬ã¯ããªã¼ãã©ãã¼ãµã«ã®å±éºæ§ãããã¨ã®æ å ±ãè¦â¦
ï¼08/12/21追è¨ï¼ ãã£ã±ãã¨ããããçç±ã¯æ¬¡ã®ã¨ã³ããªã¼ãåç §ã ãã¨ãããã£ã¦ã¿ãããã£ã¬ã¯ããªã¼ãã©ãã¼ãµã«ã®å±éºæ§ãããã¨ã®æ å ±ãè¦ããã¾ããã ï¼è¿½è¨çµããï¼ä»¥ä¸ããã¨ã³ããªã¼ãä¹ ãã¶ãã§ããä»æ¥ã¯ååã®ã¨ã³ããªã¼ã§ã¡ãã£ã¨ãµããwikiâ¦
ããããCodeIgniteré¢é£ã®ã¨ã³ããªã¼ãæ¸ããã¨ãå°ãªããªã£ã¦ããã è¦ãããã¨ãå°ãªãããããããã¾ãããéçºä¸ã®ã½ã¼ã¹ã¯ç¨éãç¹æ®ãªã®ã§ãããã«å ±æã»å ¬éåºæ¥ãªããã ãã¨ããã©ã¼ã å¨ãã®ã¨ã³ããªã¼ã¯ã¨ããããä¿çãã¾ãã ããã¾ã§ãã£é£ã°â¦
(08/12/17追è¨) ã¾ã é¨åçã«ã¹ã¼ãã¼preè¨æ³(aaè¨æ³)ã§ãã¼ã¹åºæ¥ãªããã¨ããããã¨ãããã æ«å°¾ã®||<ã®ç´åè¡ã« #^\s\?>$#; (ã¹ãã¼ã¹ä¸ã¤ããã¦phpã®éãã¿ã°?>ãä»ããï¼ ã¨ããã®ãç¾æç¹ã§åããªãæé©è§£ã®ããã ãéãã¿ã°ãç¡ãå ´åããæ«å°¾?>ã®è¡â¦
ä¹ ãã¶ãã®ã¨ã³ããªã¼ããããããã¨ã¯è¡¨é¡ã®éããCodeIgniterã®ã¢ã¸ã¥ã¼ã«åä½ï¼ã³ã³ããã¼ã©åä½ï¼ã§ã®ä½¿ç¨å¯è½ã»ä¸å¯è½ã®å¶å¾¡ãçµã¿è¾¼ãã§ã ç°å¢ã«å¿ãã¦ä½¿ç¨ã§ããã¢ã¸ã¥ã¼ã«ãå¤æ´ã§ããããã«ãããç¨éã¨ãã¦ã¯ã ãªãªã¼ã¹å¾ã«ä¸æçã«ä¸é¨æ©è½ã®ã¿â¦
ä»æ¥ã¯CodeIgniterãã³ãã³ãã©ã¤ã³ããå¼ã³åºãæ¹æ³ã試ãã¦ã¿ãã(Cron_job_bootstrapperã使ç¨ï¼ ã©ããã¦ããããããã¹ã¯ã¬ã¤ãã³ã°ãããªãã¦ã¯ãªããªãå¦çããã£ãã®ã§è©¦ãã¦ã¿ããå¹¾ã¤ã解決æ¹æ³ãããã¿ããã ããCron_job_bootstrapperãæ°ã«å ¥ã£â¦
ä»æ¥ã¯æ¨æ¥ã®ç¶ããHMVCã¢ã¸ã¥ã¼ã«ã®åä½ç¢ºèªããã¦ã¿ããã¢ã¸ã¥ã¼ã«åä½ã§ããCodeIgniteræ¨æºã®ã³ã³ãã¼ãã¼ã©ã¨åæ§ã«åä½ããã®ã ãã ãã®ãµã³ãã«ã§ã¯ã親ã®ã³ã³ããã¼ã©ããå¼ã³åºãããå¥ã³ã³ããã¼ã©ã®ã¤ã¡ã¼ã¸ ï¼ããã°ãã¼ãã¿ãããªã¤ã¡ã¼ã¸ï¼ã®â¦
ä»æ¥ã¯æ¨æ¥ã®ã¨ã³ããªã¼ã®ç¶ããCodeIgniterã®HMVCæ¡å¼µããããªããï¼PHP5ç¨ï¼ã¤ãã§ã«ä¸é¨ä¸æºãªç®æãå¾®æ¹é ãï¼ã¢ãã«çã®ãã¡ã¤ã«åã®å¤§æåå°æåãåºå¥ããã¨ããçï¼ï¼ä»æ¥ã®ã¨ã³ããªã¼ã¯ã¤ã³ã¹ãã¼ã«ã¨å¾®æ¹é ã¾ã§ãç¶ãã¯ææ¥ï¼ã¤ã³ã¹ãã¼ã«è¨ç½®ããâ¦
ä»æ¥ã¯ãHMVCã®æ¡å¼µã使ã£ã¦ãã¢ã¸ã¥ã¼ã«åä½ã§ã®ã½ã¼ã¹ç®¡çï¼æ©è½ç®¡çï¼ãå®ç¾ããã ï¼è¨è¿°ãããã¨ãå¤ãã®ã§ä»æ¥ããæ°æ¥ã«åãããä»æ¥ã¯ã¾ãæ¦å¿µãããï¼ã³ã³ããã¼ã©ããã¥ã¼ï¼ããã°ãã¼ãããã¯ãªãã¥ã¼ã®ä¸é¨ï¼ã ã©ã¤ãã©ãªãå°åãã«ç®¡çãããâ¦
(08/12/04ï¼ Thanks for introduce this source to the CodeIgniter Wiki. I feel a little happy! http://codeigniter.com/wiki/Phplot/ CodeIgniteræ¬å®¶ã®Wikiã«ãã®æãã½ã¼ã¹ã翻訳ãã¦æ稿ãã¦ãããæ¹ãããã ã¤ãã§ã«æ¬å®¶wikiå´ã½ã¼ã¹ã®ãèªå翻訳絡â¦
ä»æ¥ã¯æ¨æ¥ã®ã¨ã³ããªã¼ã®é¢é£ããã£ããCodeIgniterä¸ã§PEARãç°¡åã«ä½¿ããããã«ããã®ã§ã éçºã楽ãããªãããã«PEAR :: Var_Dumpãç°¡åã«å¼ã¹ããã«ããä½ã£ã¦ã¿ãã 以ä¸PEARã¨æ±ºå¥ãã人ã«ã¯å ¨ãä¸è¦ãªã¨ã³ããªã¼ã 俺ã¯ç¾å®æ´¾ã®ãã«ã°ã©ããªãã§ãâ¦
ããã¨ãä»æ¥ã¯å æ¥ã® CodeIgniterã®å¦ç¿ 44 - PEARãCodeIgniterä¸ã§ä½¿ããããã«ãã http://d.hatena.ne.jp/dix3/20081118/1226994170 ã®ç¶ãã ï¼include_pathã®è¿½å ãã½ã¼ã¹ã®è¨ç½®çã®åæã¯æ¢ã«æ¸ãã§ãããã®ã¨ãããï¼ å æ¥ã®ã¨ã³ããªã¼ã§ã¯ã ã©ã£â¦
ä»æ¥ã¯ããã«å°ããªãã¿ããã®æ¥è¨ã®ãªãã¡ã©ãè¦ãã¨ãªããæ¤ç´¢ä¸ä½ã«å¼ã£ããã£ã¦ãã®ã§ãæ¸ãã¦ããã ã©ã³ãã ãªä»»æã®é·ãã®æååã»æ°åã¨ããã¹ã¯ã¼ããçæããç·´ç¿ã çãï¼æååãã«ãã® random_string() ã使ãCodeIgniterã®ããã¥ã¢ã«ãè¦ãã°â¦
ä»æ¥ã¯PEARãCodeIgniterä¸ã§ä½¿ããããã«ãããç°¡åãªãã¿ãå ¨ãã®æ°è¦éçºã§ã¯ãªãã éå»ã«éçºããããã°ã©ã ãçæéã§ç§»æ¤ãããå ´åãªã©ãäºæ ã«ãã£ã¦ã¯PEARã使ãããå ´åãæãã ãããå ãã¿ã¯ http://codeigniter.com/wiki/PEAR_integration/ ã â¦
ä»æ¥ã¯CodeIgniterã®ãã°åºåãZend Frameworkã®Zend_Logã«ç½®ãæããä½æ¥ããããèå³ç¡ã人ã«ã¯ä¾¡å¤ã®ãªãä½æ¥ã æ¢ã«å¦ç¿ã¨ããããæ¡å¼µã®æ®µéã«å ¥ã£ã¦ããããï¼å¥½ã¿ã§æ¡å¼µã§ããã®ãCIã®è¯ãã¨ããã ã¨æããã©ã å¹ã®å å¼å½ã大好ããªäººã«ã¯åããªããâ¦
ä»æ¥ã¯CodeIgniterãã°ã¡ãã»ã¼ã¸ã®å¼ã³åºãæ¹ã楽ã«ãã¦ã¿ãã以ä¸ä¸å¹³ä¸æºCodeIgniterã®ãã°ã¡ãã»ã¼ã¸ã¯ãsystem/codeigniter/Common.php å ã§å®ç¾©ããã¦ãã function log_message($level = 'error', $message, $php_error = FALSE)ã使ãã®ã ãã(ã¡ãªâ¦
å¢ãã§CodeIgniterã®ãã¼ã¸ã§ã³ã1.6.3ãã1.7.0ã«ã¢ãããããCSVãã¡ã¤ã«ã®åºåãåºæ¥ãªããªã£ãã ï¼é¢é£ CodeIgniterã®å¦ç¿ 27 - CSVãã¡ã¤ã«ãã¯ã¨ãªããåºåãã¦ã¿ããã¤ãã§ã«DB_utility.phpå ã®åºåå½¢æ ã®å¾®èª¿æ´ http://d.hatena.ne.jp/dix3/2008102â¦
ä»æ¥ã¯ç°¡åãªãã¿ãCodeIgniterã®ããã¹ããã«ãã¯æ¥æ¬èªï¼ãã«ããã¤ãï¼ã«å¯¾å¿ãã¦ããªãã®ã§ ã¡ããã¡ãã対å¿ããã¦ã¿ããã¨ã«ããã便å©ãªã®ã§è²¼ã£ã¦ããããããµãã¦ããã®ã§ãæ¢ã«è§£æ±ºä¾ãããããç¥ããªãï¼ãã¿ã被ã£ã¦ãããããããªãï¼ãã©ããâ¦
ä»æ¥ã¯ä»¥åã®ã¨ã³ã㪠CodeIgniterã®å¦ç¿ 23 - ã¯ã³ã¿ã¤ã ãã±ããï¼ã¯ã³ã¿ã¤ã ãã¼ã¯ã³ï¼ã®æ©è½ãä½ã£ã¦ãCSRF対çãã¡ãã£ã¨ããæ°åã«ãªã£ã¦ã¿ã http://d.hatena.ne.jp/dix3/20081017/1224196292ã®CSRFã©ã¤ãã©ãªã表é¡ã®ããã«æ¹è¯ããã®ã§ã使ã人ã¯ãâ¦
(08/11/10 5:10å ¨åé¤) ãªãã$config['sess_time_to_update']ããã¿ã§ãã¾ããããªãï¼ãã¾ãããããæ¸ãã¨éã«æ··ä¹±ããã®ã§ã ãã®ã¨ã³ããªï¼CodeIgniterã®å¦ç¿ 38ï¼ã¯æ®ããã«ããã¦åé¤ãã¾ããé¡æ´ã£ã¦æ·±å¼å¸ãã¦åºç´ãã¦ããããã(08/11/10 5:50復活â¦
ããå æ¸ã»ãã·ã§ã³å¨ããèããã®ã飽ããã®ã ãã DB2_Sessionæ¹ Db_session ã«ããã¤ãæãå ¥ããã®ã§ãç¾å¨ã¾ã§ã®ã¾ã¨ããè²¼ã£ã¦ããã俺èªèº«ã¯ãCodeIgniter1.7.0ã®Session.phpãã¼ã¹ã«ããã移è¡ããäºå® ï¼åä½ã®å®å®ã確èªãããã移è¡ããã ãããªâ¦
æ¨æ¥ã®ã¨ã³ããªã®ä½æ¥ä¸ã«ãHTTPããããè¦ã¦ããã¨ã Expires Last-Modified Cache-Control Pragma ç³»ã®ããããåãã¦ããªããã¨ã«æ°ã¥ãããæ®éã®HTMLãã¼ã¸ï¼éçãã¼ã¸ï¼ãªãã°ããã£ãã·ã¥ã¯å¥ã«ããã¦ãè¯ãããã©ãwebã·ã¹ãã ç³»ã ã¨ããã©ã¦ã¶å´ã®â¦
(08/11/10追è¨) http://d.hatena.ne.jp/dix3/20081110/1226243974 ã«ã¾ã¨ãã¾ããã(08/11/09追è¨) ãã¼ãããã®æ¹é ã¯ä¸æåãããã åããããå ã«æ»ãã¦ä¿çããã 以åã®ã¨ã³ããªhttp://d.hatena.ne.jp/dix3/20080921/1221946495 㧠CodeIgniter Versioâ¦
ï¼08/11/30è¨æ£ï¼ CIã«ã¯form_prep()ã£ã¦ã®ããã£ãã¿ããã ã§ãh()ã®æ¹ãçãã®ã§ãã³ã¡ã³ãã¢ã¦ããã¦ãã ã®ã©ããã¼ã«ãã¦ã¿ãã ããããã°ããã©ã¼ã ãã«ãã®å¦ç¿ã足ãã¦ããªããªã ï¼08/12/15追è¨ï¼ã¡ãªã¿ã«form_prep()ã§ã¨ã¹ã±ã¼ãããã®ã¯ãformãâ¦