Home >Backend Development >PHP Tutorial >PHP妗妘灦 ZenTaoPHP_PHP珁欑▼ | 宁涔嫔
涓€銆䷷粈涔堟槸ZenTaoPHP妗嘘灦
ZenTaoPHP纴瀹The wealth and flaws are so great
1.1 浠g爜绠€鍗?br /> ZenTao PHP .php鍜屽 Cut鍏风被helper.class.php抆卞婷闱㈢殑浠g爜涔绻冰澶綺mu鍗曘€坝UM晙峰ぇ瀹谲浠ュ緢瀹regulation槗镄勮nickel effect /p>
1.2 鐐ц兘鑹ソ
ZenTaoPHP殑鎻愬What’s the point?/p>
1.3 缁撴瀯哓呮综合
ZenTaoPHP p>
1.4 寮€鍙戝常濂?br /> 妗妘灦锛偄鍏域槸槓€涓锛屾妸俳鍦ㄤ Brief Reading岄 ulcer銆四墍浠ュ緢澶氭鋋多多礊緢澶氱殑羾﹀畾锛屼綘Errors and defects椤緢涶氱殑xxxx涔嬬是镄勪笢涓濓€四垜夊缑涓€涓ソ鄄勬鋋跺湪瀹炵幇锷绻兘鄄嬋姠鎻愪笅锛屽簲褰揿斖忓压椤Fear of 紑鍙戜Han forged tree 箣铣瓓宑寮€鍙戜fan鎯€俍enTaoPHP妗嘘灦鍦ㄨumbrella鏂guiguiguiguibecomessimplified寰埚ぇ镄嫫姏姘旓 Details
1.5 public domain 麺堟潈
public domain 玺堟戈灏秸汲簲尲浠ユ嬁瀹娨仛浠不畄勪簨钯咃纴炂呴死寮€鍙戝洟阒緷综合灁皢ZenTaoPHP妗嗘灦鄄鄭勗 Increase 鈉醨畲The disease chain変Change to Huan Kuang?/p>
浜屻€乑enTaoPHP妗妘灦鄄勪富狠丸呛鑳 borrow涓嬶精品
2.1 鍗曚竴鍏ュ彛妯′′ spinning
鍗曚竴鍏ュ彛鏄幇鍦ㄦ瘮杈冩祦辰出殑寮€鍙戞柟寮忋€傚ソ澶勫湪浜庡彲浠ユ涓湳湳湪浜庡彲浠ユ涓湳殑垨钥呰妗嗘灦涓€涓瘮杈冨熀链殑涓滆タ涔熸槸鍗曚竴鍏ュ彛鍚с€傜幇鍦╖enTaoPHP 妗妗鍦鍦鍦╛enTaoPHP 妗妗傜幇鍦╖enTaoPHP 妗妗偗屽The .php 鍜宑li/call 杩欎袱涓枃浠hide€?/p>
2.2 MVC
ZenTaoPHP 鏀寔MVC鏂瑰纺锨勫紑鍙戙€备笉杩囩浉姣旇闇浜庡叾浠栨鏋剁殑澶氱妯℃澶氱妯℃澶氱妯℃澶氱妯℃澶氱妯℃澶氱妯℃澶氱妯℃澶澘瀹PHP rudder disease chain夊皾璇曞幓寮€鍙戜竴濂楁柊鐨勬ā鏉跨郴缁炂紝钥屾槸阅囩敤PHP 滀负妯℃澘璇█銆鏄傝繇繇嶈В鍐虫柟妗堬紝钥屼笖涔熸槸链€绠€娃佺殑涓€绉嶆妗堛€?br />
2.3 鏀寔GET鍜孭ATH_INFO涓ょ鏂瑰纺敤敤
鏀寔index.php?m=user&f=info&id=123杩欑GET 鏂瑰纺鐨勮皟鐢紝涔熸敮鎸?/user/info/id/123.html 材鬏皟鐢ㄣ€傚鏋滀綘鑳芥带鍒朵綘鐨勮繍琛湆澧冿紝鍙互浣跨敤PATH_INFO鐨勬柟寮忥琝榐杩杩杩Spinning Village 姞绠€鎹凤紝钥屼笖瀵规悳绱㈠紩鎿庡崄鍒嗗弸连姐€?br />
2.4 鍐呯疆鏁版嵁搴撹闂眰DAO
绂呴亾妗嗘灦鍐呯疆浜咲AO鏁版嵁搴撹闂眰锛屽湪PDO鐨勫熗嗘灦鍐呯疆琴钹闂眰锛屽湪PDO鐨勫熀嗘灦鍐呯灗淗鐨鋫熀湪驏紝鎻愪緬浜嗍旍嘛锛屽彲浠ラ潪宁告柟渚跨殑涔﹀启 SQL鏌ヨ璇彞锛岃幏鍙栨暟鎹€傝€屼笖鎴戜滑鍦ㄥ疄閄閄閬变简寰堝ぇ鐨勫姏姘斿湪鍏煎涔嫔墠澶у鎵嫔启SQL鐨勪范鎯紝鎵€浠ュぇ瀹湪湪姏姘织呑鐨勬椂链欙紝浼氬彂鐜板緢浜插垏锛屽洜涓哄拰鎵嫔启SQL鍩烘湰涓婃槸鐩稿悓鐨勩€?br />
2.5 鏀寔璺ㄦā鍧椾箣闂寸殑璋幂敤
鍦╖enTaoPHP 妗嗘灦涓紝涓€涓ā鍧楃殑control鎴栬€卪odel閮借彲浠ョ洿鎺ヨ皟鐢ㄥ彟澶栦烅ā鎺ヨ皟鐢ㄥ彟澶栦甅ā Fengfeng Ammonia 鍙互皓嗕竴涓簲鐢ㄨ繘琛屾ā鍧楀寲锛劧鍚庨€氳绷劧鍚庨€氳绷囩敤涓嶅悓妯"潡鐨勫姖鑳瑳瑳鏉傜殑鍔熻兘銆?br />
the " €氳绷control涔嬮棿鐨勪簰鐩歌皟鐢紝瀹炵幇浠g爜鐨勫睿浜€?br />
2.6 鏃犻渶璺敱閰 rugged疆锛屽嵆鍙幏寰楃亩鎹风殑URL
ZenTaoPHP 妗嗘灦鎻愪緵浜嗙妗佺殑鍙傛暟浼犻€掓柟寮忋€傛瘮濡倁瑟妯′′潡链変竴涓猺伶锶鏂涓や釜鍙傛暟锛岄€氬父鐨楷ATH_INO涓簎ser/read/id/1/name/wwccss.html锛岃€孼enTaoPHP鏀寔user/read/1/wwccss.html舰寮勨勨忥紝杩欐牱皓辩渷鐣ヤ简鍙傛暟鍚殑浼犻€掋€傝繖涓€鍒囷紝閮戒笉暗€瑕麀厤缃敻敻ラ€氳绷妗嗘灦鐨勫姛鑳借氨鍙互銮峰緱銆?br />
2.7
绂呴亾PHP妗嗘灦鍐呯疆嗙伒娃箑鏁版嵁南岃瘉Chainco锛屽彲浠ュ疄鐜板鏁版嵁鐨勪妫妫e爜鏋佸叾绱у噾锛出亩瓦并€?br />
2.8 敤敤
ZenTaoPHP 妗嗘灦鐨勯厤缃病链夌敤浠€涔坕ni鏂囦欢锛屼篃娌℃湁鐢ㄤ粈涔坹aml鏂囦欢锛屼℃╩暟缁勶紝钥屾槸鐩存帴鐢≒HP瀵硅薄鐨勫Ship House 忋€傝繖鏍烽厤缃枃浠朵笉暗€瑕疵佽В鏋槸鐩瀵瀵镧彲浠浠浠屼笖寮旷敤璧锋潵鍗佸垎鐨勬柟渚裤€傚舰濡?config->db->host鐨勮繖绉嶆柟寮忥紝钥屼笉鏄['db' ]['host']鐨勮繖绉嶆柟寮忋€备功鍐捣鏉ヤ细闈炲父鐨勬祦鐣咃紒
2.9 Go around and study 勫叏灞€鍙橀噺搴旂敤
鍦╖enTaoPHP 妗嗘灦涓紝寮旷敤GET锛孭OST,SERVER杩欐牱鐨勫叏灞€鍙橀噺锛屽彲浠忬柳橀噺锛屽彲浠忝柨氳t ;get->userName, $this->post->userName, $this->server->remote_addr銆?br />
2.10 鎵€瑙佸嵆API
鍦ㄧ幇鍦ㄥ紑鏀怕 hook鍙扮殑娼祦涓嬮溃锛屾湁涓€涓潪潪宁稿ソ鐨刟pi Chain Cool Po 鏄瘮杈冮ton flaw佺殑銆紝姣忎竴涓帴鍙i兘鍙互鎴愪负api銆傝嚦浜巃pi鐨勬柟寮忥紝鏄€氳绷鍏鍙鍍鍙鍍锾↖闂鍍鍔They kiss each other哄垎銆傛瘮濡傚鏋滀綘璁块棶鐨勬槸user/read/id/123.html锛岄偅遅堣繑鍥炵殑鏄鏋滀綘璁user/read/id/123.html锛岄偅頣繑鍥炵殑鏄鏋滀綘璁user/read/id/123.html锛岄偅頣繑鍥炵殑鏄鏋滀綘璁user/read/id/123.html锛岄偅頣繑鍥炵殑鏄殑鍥炵殑鏄殑闂殑鏄痷ser/read/id/123.json锛岄偅涔堣繑鍥炵殑皓辨槸json鏍煎纺鐨勬暟鎹€?br />
2.11 鍐呯澶氳瑷€鏀寔
ZT 鏀寔澶氱璇█鍔熻兘锛屼细鑷姩鏍规嵁褰按墠鐢ㄦ埛瀹㈡埛埛埛埛埛瀹㈡埛埛埛刜殑淇℃伶鏉珉琅鏉珉鏉鏉鐢埛埛埛埛埛瀹㈡埛埛埛埛瀹㈡埛埛刜殑淇℃伶鏉鏉Ai €锛岃繖鏍峰彲浠ユ柟渚 collapseぇ瀹跺紑鍙戝璇█鐨勫簲鐢ㄣ€?br />
2.12 Liaocoぇ鐨勬墿灞曟満鍒?br />
ZenTaoPHP 妗嗘灦瀹炵幇浜嗗己澶х殑鎵╁睍链抆傞€氳绷杩欏鎵╁睍链抆傞€氳绷杩欏鎵╁睍链澶х殑鎵Hand Box Nut Treks Zhuang Yan Yuen Shuzu Nickel Results Restoration Grandin Hydrohiro Grass Noble Slying, Grained Squeaks [Simple , Simple , Simplicity ?/p>