Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[PHP]SmartyµÄʹÓÃ

<?php
define('SMARTY_TMP_DIR','C:/php5/Smarty-2.6.13/');
define('SMARTY_DIR','C:/php5/Smarty-2.6.13/libs/'); //SMARTY_DIR ->smarty keyword,must be defined as libs dectory
require_once(SMARTY_DIR.'Smarty.class.php');
//½¨Á¢Ò»¸ösmarty¶ÔÏó
$smarty = new Smarty;
$smarty->template_dir = SMARTY_TMP_DIR.'templates/';
$smarty->compile_dir = SMARTY_TMP_DIR.'templates_c/';
$smarty->config_dir = SMARTY_TMP_DIR.'configs/';
$smarty->cache_dir = SMARTY_TMP_DIR.'cache/';
//$smarty->left_delimiter = '{/';
//$smarty->right_delimiter = '/}';
//----------simple show example------------
//$smarty->assign('name','Porky');
//$smarty->display('smarty_test.tpl');
?>


Ïà¹ØÎĵµ£º

PHP ¿ª·¢±à¼­¹¤¾ß

Ç¿´ó¶øÇÒÃâ·ÑµÄ zend studio Ê×µ±Æä³å£¬¿Éϧ±¾ÈË»úÆ÷ÅäÖò»¸ß£¬ÔËÐÐÆðÀ´Ê®·Ö³ÔÁ¦£¬ÓÃûÁ½´ÎÌ«ÊÜ×ï¾Í·ÅÆúÁË¡£
PHPEdit£¬¶ÌС¾«º·£¬¿ÉÏÞʱÊÔÓ㬸оõÒ»°ã¡£
PHPDesigner ÕýÔÚÓ㬻¹ÊÇ¿ÉÒÔÒ»ÊÔ£¬ÍøÉϵÄ×¢²á»ú³öµÄÒ²Ï൱¼°Ê±¡£ 0.0
´¿Îı¾±à¼­ Editplus »¹Êdz£±¸¹¤¾ß¡£ ......

¹úÍâÊ®´ó×îÁ÷ÐÐPHP¿ò¼ÜÅÅÃû X


±¾ÎÄÀ´×Ô¹úÍâµÄÒ»¸öPHP¼¼ÊõÈËÔ±ÍøÕ¾£¬×ܽáÁ˹úÍâµÄÊ®¸öĿǰ×îÁ÷ÐеÄPHP
MVC¿ò¼Ü¡£¾ßÌåÅÅÃû˳Ðòδ±Ø×¼È·£¬»¹ÓÐЩ֪Ãû¿ò¼Ü£¬ÈçKohanaµÈҲûÓÐÌá¼°¡£²»¹ýÈÔ¿ÉÒÔ×öΪһƪ²»´íµÄ²Î¿¼¡£
ÒÔÏÂΪʮ¸öĿǰ×îÁ÷ÐеĻùÓÚMVCÉè¼ÆÄ£Ê½µÄPHP¿ò¼Ü¡£
1. Yii
YiiÊÇÒ»¸ö»ùÓÚ×é¼þµÄ¸ßÐÔÄܵÄPHPµÄ¿ò¼Ü£¬ÓÃÓÚ¿ª·¢´ó¹æÄ£WebÓ¦Óá£Yii²ÉÓÃÑ ......

PHP ÖлñÈ¡ÎļþÃû¼°Â·¾¶


¡¡¡¡ÎªÁ˽ű¾³ÌÐòµÄ¼æÈÝÐÔ£¬ºÜ¶àʱºò½Å±¾µÄÃû³Æ¶¼²»Êǹ̶¨µÄ¡£ËùÒÔÎÒÃÇÐèҪͨ¹ý¶¯Ì¬»ñÈ¡µ±Ç°½Å±¾µÄ·¾¶¡¢ÎļþÃûÀ´Íê³ÉijЩ¹¦ÄÜ¡£
¡¡¡¡PHP ÖУ¬ÎÒÃÇ¿ÉÒÔʹÓó£Á¿ __FILE__ À´»ñÈ¡µ±Ç°±»Ö´Ðнű¾µÄÍêÕû·¾¶¡£
¡¡¡¡×¢Ò⣺µ±°üº¬´Ë±äÁ¿µÄ½Å±¾±»ÆäËû½Å±¾include»òÕßrequireµÄʱºò£¬ __FILE__ ½«ÈÔÈ»·µ»Ø´Ë½Å±¾µÄµØÖ·£¬¶ø²»ÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ