Home  >  Article  >  Backend Development  >  PHP妗妘灦 ZenTaoPHP_PHP珁欑▼ | 宁涔嫔

PHP妗妘灦 ZenTaoPHP_PHP珁欑▼ | 宁涔嫔

WBOY
WBOYOriginal
2016-07-15 13:22:581954browse

涓€銆䷷粈涔堟槸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

  • 涓€у懡钖嶏小妗妘灦炵絇垞讹纴娌℃湁鍑红繇浠€涔坺entao涔嬬是镄勫懡钖嶏纴瀹屽叏鏄酑琐х殑forging Use outer, control, model, config, lang?/li>
  • 閰缧瀵瀵 silicon thin鍖栵浵疰缤椤椲 graduate ?config['db']['user']绠€娲侀『鐣呯殑澶氥€?/li>
  • 鐩 draft璺SATIN鍖鍖捖曈橩湪ZenTaoPHP妗嘘灦寮€鍙戠殑搴 Flag椤涓纴铓€chain夌殑璺SATIN閮 borrow彲浠ョ椤鐩 draft 璺SATIN鉉ヨ繘琛屽赐钖纴杩欐牱鍙 Mutual Huan尟嫻酅装殑鐭ラ死搩綍缁洴瀯鍜屼褼佷箣邂anc殑鍏Chongchenchen銆?/li>

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>

www.bkjia.comhttp: //www.bkjia.com/PHPjc/446944.htmlTechArticle涓€銆佷粈涔堟槸ZenTaoPHP 妗嗘灦ZenTaoPHP 妗嗄灜洰绠$悊杞欢寮€鍙戝洟闃熷紑鍙戠殑涓€忕忕骇鐨凯 HP寮€鍙戞鏋崝瀹戞富瑕佺殑鐗浠g爜绠€鍗?ZenTa...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn