2008-11-01ãã1ã¶æéã®è¨äºä¸è¦§
ä»æ¥ã¯æ¨æ¥ã®ã¨ã³ããªã¼ã®ç¶ãã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ãâ¦
ä»æ¥ã¯CodeIgniterã«MySQL_DATETIME_Helperï¼ http://codeigniter.com/wiki/MySQL_DATETIME_Helper/ ï¼ãçµã¿è¾¼ãã§ã æ¥ä»ãã«ããæ¡å¼µãã¦ã¿ããã¤ãã§ã«æ¥æ¬ç¨ã«å°ã æ¹é ãã¦ã¿ããæ¥ä»ã®å¤æã£ã¦é¢åã ãmktimeã¨ã使ãã ãã¨ãé ãæ··ä¹±ããã®ã§å«ããªã®â¦
ï¼ä»äºãå¿ããã®ã§ãå¦ç¿ã®æ´æ°ã¯å°ãªããªããããã§ãã¯ãã¦ãªãã¢ãã¡ãï½ï½ï¼ ä»æ¥ã¯ä»¥åCodeIgniterã«çµã¿è¾¼ãã xajaxã©ã¤ãã©ãª(http://d.hatena.ne.jp/dix3/20080924/1222195390)ã¨ã 以åå¦ç¿ãããã¼ãã«çæã¯ã©ã¹(http://d.hatena.ne.jp/dix3/200â¦