thinkphpÍøվͼ±ê¸Ä²»ÁË
thinkphpÊÇÒ»¿îºÜÊÇÊܽӴýµÄphp¿ò¼Ü£¬Í¨¹ýʹÓÃËü£¬¿ª·¢Ö°Ô±¿ÉÒÔÔ½·¢¸ßЧµØ¿ª·¢ÍøÕ¾ºÍÓ¦ÓóÌÐò¡£²»¹ý£¬ÔÚʹÓÃthinkphp¿ª·¢Íøվʱ£¬ÓÐʱÎÒÃÇ»áÓöµ½Ò»Ð©ÎÊÌâ¡£ÆäÖУ¬Ò»¸ö³£¼ûµÄÎÊÌâÊÇÎÞ·¨¸ü¸ÄÍøÕ¾µÄͼ±ê¡£±¾ÎĽ«ÏÈÈÝΪʲô»á·ºÆðÕâ¸öÎÊÌâÒÔ¼°ÔõÑù½â¾öËü¡£
Ò»¡¢ÎÊÌâÐÎò
ÔÚijЩÇéÐÎÏ£¬thinkphpÍøÕ¾µÄͼ±ê¿ÉÄÜÎÞ·¨¸ü¸Ä¡£Ò»Ñùƽ³£À´Ëµ£¬ÎÒÃÇ¿ÉÒÔÔÚÍøÕ¾µÄhtmlÍ·²¿ÖÐÉèÖÃͼ±êÁ´½Ó£¬ÀýÈ磺
È»ºó½«favicon.icoÎļþÉÏ´«µ½ÍøÕ¾µÄ¸ùĿ¼Ï¡£ÕâÑùÉèÖúó£¬ÎÒÃǵÄÍøÕ¾¾Í»áÏÔʾ×Ô½ç˵µÄͼ±ê¡£¿ÉÊÇ£¬ÔÚÓÐЩÇéÐÎÏ£¬ÎÞÂÛÔõÑùÉèÖã¬thinkphpÍøÕ¾µÄͼ±ê¶¼ÎÞ·¨¸ü¸Ä£¬ÍøÕ¾ÒÀȻչʾĬÈÏͼ±ê¡£
Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»
¶þ¡¢ÎÊÌâÔµ¹ÊÔÓÉ
Ôì³ÉÕâ¸öÎÊÌâµÄÔµ¹ÊÔÓÉÓжàÖÖ¡£ÒÔÏÂÊÇһЩ¿ÉÄܵÄÔµ¹ÊÔÓÉ£º
1.ä¯ÀÀÆ÷»º´æ¡£ÈôÊÇÎÒÃÇÔÚÉèÖÃͼ±êÁ´½ÓºóûÓÐɨ³ýä¯ÀÀÆ÷»º´æ£¬ÄÇôÎÒÃǵÄÍøÕ¾¿ÉÄÜÈÔÈ»»áÏÔʾ¾ÉµÄͼ±ê¡£Òò´Ë£¬ÎÒÃÇÐèҪɨ³ýä¯ÀÀÆ÷»º´æÒÔË¢ÐÂÒ³Ãæ¡£
2.thinkphp»º´æ¡£ÓÐЩthinkphp¿ò¼Ü»º´æµÄ»úÖÆ¿ÉÄܻᵼÖÂÎÒÃÇÎÞ·¨¸ü¸ÄÍøվͼ±ê¡£ÔÚÕâÖÖÇéÐÎÏ£¬ÎÒÃÇÐèҪɨ³ýthinkphp»º´æ¡£
3.´úÂë¹ýʧ¡£ÈôÊÇÎÒÃÇÔÚÉèÖÃͼ±êÁ´½ÓµÄ´úÂëÖÐÓйýʧ£¬ÄÇôÎÒÃǵÄͼ±ê¿ÉÄÜÎÞ·¨ÏÔʾ¡£ÔÚÕâÖÖÇéÐÎÏ£¬ÎÒÃÇÐèÒª¼ì²é´úÂë²¢¾ÙÐÐÐÞ¸´¡£
Èý¡¢½â¾öÒªÁì
ÈôÊÇÎÒÃÇÓöµ½ÁËÎÞ·¨¸ü¸ÄthinkphpÍøվͼ±êµÄÎÊÌ⣬ÓÐÒÔÏÂһЩҪÁì¿ÉÒÔʵÑ飺
1.ɨ³ýä¯ÀÀÆ÷»º´æ¡£ÈôÊÇÎÒÃÇɨ³ýÁËä¯ÀÀÆ÷»º´æ²¢Ë¢ÐÂÒ³Ãæºó£¬ÕÕ¾ÉÎÞ·¨ÏÔʾ×Ô½ç˵ͼ±ê£¬ÄÇôÎÒÃÇ¿ÉÒÔʵÑéÒÔÏÂÒªÁì¡£
2.ɨ³ýthinkphp»º´æ¡£ÈôÊÇÎÒÃÇÎÞ·¨¸ü¸Äͼ±ê£¬ÓпÉÄÜÊÇÓÉÓÚthinkphp»º´æµ¼Öµġ£Òò´Ë£¬ÎÒÃÇÐèҪɨ³ýthinkphp»º´æ¡£ÎÒÃÇ¿ÉÒÔͨ¹ýÔÚthinkphp¿ò¼ÜÖÐÖ´ÐÐÒÔÏ´úÂëÀ´É¨³ý»º´æ£º
<?php // ɨ³ýËùÓÐÄ£°åµÄ±àÒ뻺´æ hinkCache::clear('think_template'); // ɨ³ýÓ¦Óûº´æ hinkacadeCache::clear(); // ɨ³ýÄ£×Ó»º´æ hinkModel::clearAll(); ?>
µÇ¼ºó¸´ÖÆ
Ö´ÐÐÒÔÉÏ´úÂëÖ®ºó£¬ÎÒÃÇÐèҪɨ³ýä¯ÀÀÆ÷»º´æ²¢Ë¢ÐÂÍøÒ³¡£
3.¼ì²é´úÂë¹ýʧ¡£ÈôÊÇÎÒÃÇɨ³ýÁËä¯ÀÀÆ÷»º´æ²¢É¨³ýÁËthinkphp»º´æ£¬ÕÕ¾ÉÎÞ·¨ÏÔʾ×Ô½ç˵ͼ±ê£¬ÄÇôÕâ¸öÎÊÌâºÜÓпÉÄÜÊÇ´úÂë¹ýʧµ¼Öµġ£ÎÒÃÇÐèÒª¼ì²éhtmlÍ·²¿Í¼±êÁ´½ÓµÄ´úÂ룬²¢È·±£Ã»Óйýʧ¡£ÈôÊDZ£´æÎÊÌ⣬ÎÒÃÇ¿ÉÒÔÐÞÕý´úÂë²¢ÖØа²ÅÅÍøÕ¾¡£
×ܽ᣺
ÎÞ·¨¸ü¸ÄthinkphpÍøվͼ±ê¿ÉÄÜÊÇÓÉÓÚ¶àÖÖÔµ¹ÊÔÓÉÔì³ÉµÄ£¬¿ÉÊÇͨ¹ýɨ³ýä¯ÀÀÆ÷ºÍthinkphp»º´æ¡¢¼ì²é´úÂëµÈ½â¾öÒªÁ죬ÎÒÃÇ¿ÉÒÔºÜÈÝÒ׵ؽâ¾öÕâ¸öÎÊÌâ¡£ÎÞÂÛÊÇÔÚ¿ª·¢ÍøÕ¾ÕÕ¾ÉÓ¦ÓóÌÐòʱ£¬·ºÆðÎÊÌⶼºÜÕý³£¡£Óöµ½ÎÊÌâʱ£¬ÎÒÃÇÐèÒªÄÍÐÄÑ°ÕÒ½â¾öÒªÁ죬Ìá¸ß½â¾öÎÊÌâµÄÄÜÁ¦¡£
ÒÔÉϾÍÊÇthinkphpÍøվͼ±ê¸Ä²»Á˵ÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡