æºå£ 令é mizog****@gmail***** 2010å¹´ 3æ 19æ¥ (é) 21:59:25 JST åã®è¨äº [Codeigniter-users] ã注æåèµ·ãCodeIgniter 1.7.2 Formãã«ãã¼ã®èå¼±æ§ æ¬¡ã®è¨äº [Codeigniter-users] ã¦ã¼ã¶ã¬ã¤ã 2.0.0 ã®ç¿»è¨³ä½æ¥ã®éå§ è¨äºã®ä¸¦ã³é : [ æ¥ä» ] [ ã¹ã¬ãã ] [ 件å ] [ èè ] ãä¸è©±ã«ãªã£ã¦ããã¾ããæºå£ã§ãã Kenji Suzuki <kenji****@gmail*****> ããwrote: > > ãããå®è¡ããã¨ãhoge ã®å¤ã & ã ã£ãå ´åãã¨ã¹ã±ã¼ããäºéã«ãã > > ã£ã¦ ...(ä¸ç¥)... > ããããã㯠2åç®ä»¥éã ã htmlspecialchars() ãããã¨ãããã¨ã§ããã > äºéã«ããã¦ã¯ããã¾ããã ãããªãã»ã©ãã
CodeIgniter 㯠Active Record ãã¼ã¿ãã¼ã¹ãã¿ã¼ã³ã®æ¹å¤çãæ¡ç¨ãã¦ãã¾ãããã®ãã¿ã¼ã³ãå©ç¨ããã¨ãæ å ±ã®åå¾ã»æ¿å ¥ãããã¦æ´æ°ãæå°éã®ã¹ã¯ãªããã£ã³ã°ã§å¯è½ã«ãªãã¾ãããã¼ã¿ãã¼ã¹å¦çãããã®ã«ããã£ã1ã2è¡ããå¿ è¦ã§ãªãå ´åããããã¾ããCodeIgniter ã§ã¯ãã¼ã¿ãã¼ã¹ãã¨ã«å°ç¨ã®ã¯ã©ã¹ãå¿ è¦ã¨ãããã¯ãã¾ããããã®ãããã§ãããåç´åãããã¤ã³ã¿ã¼ãã§ã¼ã¹ãæä¾ããã¦ãã¾ãã Active Record æ©è½ã使ã大ããªå©ç¹ã¯ãåã«åç´ã§ããããã ãã§ãªããActive Record æ©è½ã使ãã°ãã¯ã¨ãªã®æ§æã¯å種ã®ãã¼ã¿ãã¼ã¹ã¢ããã¿ãçæãã¦ãããã®ã§ããã¼ã¿ãã¼ã¹ããç¬ç«ããã¢ããªã±ã¼ã·ã§ã³ãä½æã§ããã¨ãããã¨ã§ããã¾ããã·ã¹ãã ã«ããèªåçã«å¤ã®ã¨ã¹ã±ã¼ãå¦çãè¡ãããã®ã§ãããå®å ¨ãªã¯ã¨ãªãå©ç¨å¯è½ã«ãªãã¾ãã Note: ã¯ã¨ãª
ããã«ã¡ã¯ éçºæ¥è¨ã®ã»ãã§ãURLã®èª¬æã®æã« ã¢ã¯ã·ã§ã³åäºã ã¨ããè¨ãæ¹ããã¾ãããã Ethnaãå¼ããã£ã¦æãããã¦ãªãè¨ãæ¹ã§ããã CodeIgniterã®æ£å¼ãªããã¥ã¡ã³ããåèã«ã å°ãã ãã²ã解ããªããã¾ãã ------------------------------ã¦ã¼ã¶ã¼ã¬ã¤ãããå¼ç¨ example.com/class/function/ID æåã®ã»ã°ã¡ã³ãã¯å¼ã³åºãã¹ãã³ã³ããã¼ã©ã¯ã©ã¹ ãããããã¾ãã 2çªç®ã®ã»ã°ã¡ã³ãã¯ãã¯ã©ã¹ã®å¼ã³åºãããã¹ãé¢æ°ã¾ãã¯ã¡ã½ãããããããã¾ãã ï¼çªç®ä»¥éã®ã»ã°ã¡ã³ãã¯ãã³ã³ããã¼ã©ã«æ¸¡ãããIDãªã©ã®å¤ãããããã¾ãã ----------------------------------------------å¼ç¨çµãã éçºæ¥è¨ã§ããã£ã¦ã¿ãããã°ãã¥ã¼ããªã¢ã«ã«ãªããã°ã classã¯Blogã¯ã©ã¹ãä½ãã¾ãã
ã¦ããããã¹ãã¯ãã¢ããªã±ã¼ã·ã§ã³ã®åã¡ã½ããç¨ã®ãã¹ããæ¸ãã¨ããã½ããã¦ã§ã¢éçºã®ã¢ããã¼ãã§ãããã®ã³ã³ã»ããã«ãã¾ãæ £ãã¦ããªãã®ã§ããã°ããã®ãã¨ã«ã¤ãã¦å°ãwebã§æ¤ç´¢ãã¦ã¿ã¦ãã ããã CodeIgniterã®ã¦ããããã¹ãã¯ã©ã¹ã¯ãè©ä¾¡ã¡ã½ããã¨2ã¤ã®çµæã¡ã½ãããããªãé常ã«ã·ã³ãã«ãªãã®ã§ããæ¬æ ¼çãªãã¹ãã¹ã¤ã¼ããæå³ãã¦ä½ããããã®ã§ã¯ãªããã³ã¼ããè©ä¾¡ãã¦ã³ã¼ããæ£ãããã¼ã¿åã¨çµæãçæãããã調ã¹ãã·ã³ãã«ãªã¡ã«ããºã ã«ãªã£ã¦ãã¾ãã ã¯ã©ã¹ã®åæå CodeIgniterã®å¤§é¨åã®ã¯ã©ã¹ã¨åæ§ãã¦ããããã¹ãã¯ã©ã¹ã¯ã³ã³ããã¼ã©ã®ä¸ã§$this->load->library ã¡ã½ããã使ã£ã¦åæåãã¾ã: $this->load->library('unit_test'); ãã£ããèªã¿è¾¼ã¾ããã¨ãã¦ããããã¹ããªãã¸ã§ã¯ãã¯ã次ã®ããã«ãã¦å©ç¨å¯è½ã§ã:
ä»æ¥ã¯CodeIgniterãã³ãã³ãã©ã¤ã³ããå¼ã³åºãæ¹æ³ã試ãã¦ã¿ãã(Cron_job_bootstrapperã使ç¨ï¼ ã©ããã¦ããããããã¹ã¯ã¬ã¤ãã³ã°ãããªãã¦ã¯ãªããªãå¦çããã£ãã®ã§è©¦ãã¦ã¿ãã å¹¾ã¤ã解決æ¹æ³ãããã¿ããã ããCron_job_bootstrapperãæ°ã«å ¥ã£ãã®ã§ä½¿ã£ã¦ã¿ãã å ãã¿ã¯ã http://codeigniter.com/wiki/Cron_job_bootstrapper/ ã¨ãããã»ã¼ãã®ã¾ã¾ã ç°å¢ã«åããã¦ãã¡ããã£ã¨ã ãå¾®å¤æ´ã è¨ç½®æé æé ï¼ï¼ã½ã¼ã¹ãã¦ã³ãã¼ã http://codeigniter.com/wiki/Cron_job_bootstrapper/ã®File:cron-1.1.zipããã¦ã³ãã¼ãããã æé ï¼ï¼ãã¡ã¤ã«è¨ç½® 解åããcron.phpãã /var/vhosts/xxx.example.com/C
ãã®ãã¡ã¤ã³åã¯ä¿è·ãã¦ãã¾ããé¢ä¿è ã®æ¹ã¯ @sqm ã¾ã§ãé£çµ¡ãã ããã
CodeIgniterã¸ãããã CodeIgniter ã¯PHPã使ã£ã¦webãµã¤ããæ§ç¯ãã人åãã®ã¢ããªã±ã¼ã·ã§ã³éçºãã¬ã¼ã ã¯ã¼ã¯ - ãã¼ã«ããã - ã§ããä¸è¬çã«å¿ è¦ã¨ãããã¿ã¹ã¯ãå®è¡ããããã®è±å¯ãªã©ã¤ãã©ãªã ãã§ãªãããã®ã©ã¤ãã©ãªã«ã¢ã¯ã»ã¹ããããã®åç´ãªã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨è«ççãªæ§é ãæä¾ãããã¨ã§ãã¹ã¯ã©ããã§ã³ã¼ããæ¸ãã®ã«æ¯ã¹ãããã¸ã§ã¯ãã®éçºé度ãå éãããã¨ããã®ãã´ã¼ã«ã«ãªãã¾ãã CodeIgniter ã使ãã°ãä¸ããããã¿ã¹ã¯ã«ããã¦å¿ è¦ã¨ãããã³ã¼ãã®éãæå°éã«ãããã¨ãã§ããã®ã§ãåµé çã«ããã¸ã§ã¯ãã«éä¸ãããã¨ãå¯è½ã«ãªãã¾ãã CodeIgniterã®èæ¯ã«ããå¹ åºãã³ã³ã»ããã«ã¤ãã¦ã¯ããã®ã¦ã¼ã¶ã¬ã¤ãã®ã¤ã³ãããã¯ã·ã§ã³ã®ç« ãèªã¿ãç¶ãã¦ã¯ãããã ã®ãã¼ã¸ãè¦ã¦ãã ããã CodeIgniter ã¯ã©ããªäººã®ããã®ãã®ã§ãã?
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}