MVC鐨勫伐浣滃師鐞

Thinkphp锛孻ii2锛孋I锛孻af锛孭halcon绛
姣斿Yii2
index.php?r=site/index
index.php?r=user/reg
浠h〃鐨勫氨鏄痵ite妯″潡搴曚笅鐨刬ndex鎺у埗鍣
user妯″潡搴曚笅鐨剅eg鎺у埗鍣

鍗曚竴鍏ュ彛鐨勫伐浣滃師鐞

鐢ㄤ竴涓鐞嗙▼搴忔枃浠跺鐞嗘墍鏈夌殑HTTP璇锋眰锛屾牴鎹姹傛椂鐨勫弬鏁扮殑涓嶅悓鍖哄垎涓嶅悓妯″潡鍜屾搷浣滅殑璇锋眰銆
姣斿Yii2
index.php?r=site/index
index.php?r=user/reg
鍏ュ彛鏂囦欢姘歌繙鏄痠ndex.php

浼樺娍

鍙互杩涜缁熶竴鐨勫畨鍏ㄦф鏌
闆嗕腑澶勭悊绋嬪簭

鍔e娍

url涓嶇編瑙傦紙涓嶈繃鍙互url閲嶅啓锛
澶勭悊鏁堢巼浼氱◢浣

甯歌妯℃澘寮曟搸

PHP鏄竴绉岺TML鍐呭祵寮忕殑鍦ㄦ湇鍔$鎵ц鐨勮剼鏈瑷锛屼絾鏄痯hp鏈夊緢澶氬彲浠ヤ娇PHP浠g爜鍜孒TML浠g爜鍒嗗紑鐨勬ā鏉垮紩鎿庯紝渚嬪锛宻marty,twig,haml,liquid绛夈

妯℃澘寮曟搸灏辨槸搴炲ぇ鐨勫畬鍠勭殑姝e垯琛ㄨ揪寮忎唬鏇垮簱

姣斿smarty

$smarty->assign('name', 'lllllggg');
#閭d箞鍏跺疄浠栧氨鏄妸鎵鏈夌殑html閮芥姄鍑烘潵锛岀劧鍚庢妸閲岄潰鐨勭壒娈婂瓧绗﹁繘琛屾浛鎹紝濡傛妸{$name}鏇挎崲鎴恖llllggg

All posts

Other pages

鍙戣〃璇勮

鐢靛瓙閭欢鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢*鏍囨敞