ï¼¼ééäºå®ã®ãµã¤ãã売ããããï¼ï¼ ã¢ã¯ã»ã¹ããªããµã¤ããã³ã³ãã³ã価å¤ã§å£²ããå ´åã⦠ãã¡ã¤ã³ã®æå¹æéãæ´æ°ãã¦ãµã¤ã売å´ã«ãã©ã¤ãã¦ã¿ã¾ããã
ï¼¼ééäºå®ã®ãµã¤ãã売ããããï¼ï¼ ã¢ã¯ã»ã¹ããªããµã¤ããã³ã³ãã³ã価å¤ã§å£²ããå ´åã⦠ãã¡ã¤ã³ã®æå¹æéãæ´æ°ãã¦ãµã¤ã売å´ã«ãã©ã¤ãã¦ã¿ã¾ããã
å ¥åç»é¢ã§å ¥åããå 容ã«èª¤ãããã£ãå ´åãç»é¢é·ç§»ã¨ãã¦ã¯ä¸è¨ã®2ãã¿ã¼ã³ãèããããã A. ã¨ã©ã¼ç»é¢ã表示ãã¦ãã¨ã©ã¼å 容ãæ示ããæ»ããã¿ã³ã§å ¥åç»é¢ã«æ»ã£ã¦ãããã å ¥åç»é¢âã¨ã©ã¼ç»é¢âå ¥åç»é¢â確èªç»é¢âå®äºç»é¢ B. ã¨ã©ã¼å 容ãå ¥åç»é¢ã«æ示ããã å ¥åç»é¢âå ¥åç»é¢(ã¨ã©ã¼è¡¨ç¤º)â確èªç»é¢âå®äºç»é¢ B. ã®ãã¿ã¼ã³ã®æ¹ãã¦ã¼ã¶ã¼ã«ã¨ã£ã¦2ã¤ã®å©ç¹ãããã â 1. ç»é¢é·ç§»ãAã«æ¯ã¹ã¦1ã¹ãããå°ãªãæ¸ãã(ä½åº¦ãééããå ´åã¯ãããå¹æç) â 2. å ¥åç»é¢ã«ã¨ã©ã¼ã表示ããã¦ããã®ã§ãèªåã®ã¨ã©ã¼ã確èªããªããå ¥åã§ããã ããããB.ã®ãã¿ã¼ã³ãå®è£ ããã¨ãªãã¨ãã¦ã¼ã¶ã¼ã®å ¥åå 容ãã©ãä¿æãããã¨ããã¨ãããè¥å¹²é£ãããªããA.ã®ãã¿ã¼ã³ã§ã¯PCãªããã©ã¦ã¶ã®æ»ããã¿ã³ãããã¯history.back()ã使ãã°ããã®ã§ãã¦ã¼ã¶ã¼ã®å ¥åããå 容ã¨ããã®ã¯ãããã°
Chapter 11 ADOdb(ãã¼ã¿ãã¼ã¹ã¯ã©ã¹ã©ã¤ãã©ãªï¼ ã®å°å ¥ã ADOdb ï¼ãã¼ã¿ãã¼ã¹ã¯ã©ã¹ã©ã¤ãã©ãªï¼ã使ç¨ãããã¨ã§ãæ¯è¼çé«éã«ãã¼ã¿ãã¼ã¹ã«ã¢ã¯ã»ã¹ã§ãã¾ãã 1. ADOï½ï½ã®ã¤ã³ã¹ãã¼ã« ADOdb is a database abstraction library for PHP ããhttp://adodb.sourceforge.net/ãã®ãDownloadããããadodb-php-4-and-5 Packeageãadodb-497-for-php Rekease ã®ãadodb497.zipããããã¦ã³ãã¼ããã¦è§£åãã¾ãã 解åããããadodb497ããã©ã«ãåå ã®ãadpdbãã©ã«ãããï½ï½ï½ãã¢ã¯ã»ã¹ã§ãããã©ã«ãã« ã³ãã¼ã¾ãã¯ç§»åãã¾ããï¼Apacheã®ã¤ã³ã¹ãã¼ã«ãããã©ã«ãå ã®/users/ï½ï½ï½ï½ã«ã³ãã¼ã¾ãã¯ç§»åãã
php+Smartyã§ä»¥ä¸ã®ãããªforãå®ç¾ãããæã®ãã³ãã¬ã¼ãã®æ¸ãæ¹ãã¡ã¢ã ããã¥ã¢ã«è¦ãéãã§ã¯ã§ããªããã®ã¨æãããã¡ãªãã ãã©å®ã¯ã§ããã¨ãã(/Ïï¼¼) #ãã¤ãå¦çããããã¨æããã³ã«ããã£ã¦ãã®ã§ã»ã»ã»ã phpçã§ãããã»ã»ã» for($i=0;$i<10;$i++){ echo "$i<br>"; } Smartyç {section name=cnt loop=10} {$smarty.section.cnt.iteration-1}<br> {/section} //â»-1ããã®ããã¤ã³ã ã¨ã {section name=cnt loop=10} {$smarty.section.cnt.index}<br> {/section} ã¾ã㯠{section name=cnt start=0 loop=10} {$smarty.section.cnt.index
ãªããSmartyå ¥éè¨äºãã¯ãã£ã¦ãããããªã®ã§æ¸ããã Smartyã®æ§æ(é¢æ°)ã修飾åãã«ã¹ã¿ã é¢æ°ã®ä¸ããããã使ããã®ã»ææªããã ãç¥ã£ã¦ãã°å¤§ä½ãããããã¨ãããã®ãããã¯ã¢ãããã¾ããã ãã以å¤ã«ãããããã®é¢æ°ã修飾åãããã¾ãã®ã§ãç¥ãããæ¹ã¯ããã¥ã¢ã«ãããã£ã¦ã¿ãã¨è¯ãã§ãã ã¾ãããã¥ã¢ã«ãè¦ãã°å¤§ä½ããããã¨ã§ãããéå¼ããããã¨ä¾¿å©ã£ã¡ãã便å©ã»ã»ã»ã§ããï¼ä¾¿å©ã§ãããï¼ï¼ã ã¤ã¼ãæåã®ã»ããªãã¦ã¾ãã¾ããã¥ã¢ã«è¦ãã°ãããã¨ã§ãããããã¾ããã£ãã ç®æ¬¡ ã¯ããã«(Smartyã使ãããã«) Smartyã®è¨å® Smartyã®è¨ç½® å¿ è¦ãªãã£ã¬ã¯ã㪠Smartyã使ãããã®PHPãã¡ã¤ã«ã®è¨è¿° æä½éå¿ è¦ãªã㨠PHPãããã³ãã¬ã¼ãã«è¡¨ç¤ºããå¤æ°ãä»£å ¥ãã ãã³ãã¬ã¼ããæå®ãã¦åºåãã Smartyãã³ãã¬ã¼ãå´éå¼ããªãã¡ã¬ã³ã¹(ãã³ãã¬ã¼ããã¶
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}