{"id":32,"date":"2014-06-27T00:49:43","date_gmt":"2014-06-26T16:49:43","guid":{"rendered":"http:\/\/www.phpzl.com\/?p=32"},"modified":"2014-06-27T00:49:43","modified_gmt":"2014-06-26T16:49:43","slug":"thinkphp3-2-2%e4%b8%ad%e8%87%aa%e5%ae%9a%e4%b9%89%e5%87%bd%e6%95%b0%e7%9a%84%e4%b8%80%e4%ba%9b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.phpzl.com\/?p=32","title":{"rendered":"ThinkPHP3.2.2\u4e2d\u81ea\u5b9a\u4e49\u51fd\u6570\u7684\u4e00\u4e9b\u65b9\u6cd5"},"content":{"rendered":"<p>thinkphp\u4e2d\u81ea\u5b9a\u4e49\u51fd\u6570\u7684\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n<p>\u4e00\u3001\u5c06\u51fd\u6570\u653e\u7f6e\u4e8e\u7cfb\u7edf\u76ee\u5f55:ThinkPHP\/Common\/function.php \u4e0b\uff0c\u53ef\u76f4\u63a5\u8c03\u7528\uff1b<\/p>\n<p>\u4e8c\u3001\u5c06\u81ea\u5b9a\u4e49\u51fd\u6570\u65cb\u8f6c\u4e8e\u7cfb\u7edf\u76ee\u5f55\u6269\u5c55\u51fd\u6570\u6587\u4ef6\uff1aThinkPHP\/Common\/extend.php\u4e0b\uff0c\u8c03\u7528\u65f6\u9700\u8981\u52a0\u8f7d:LOAD(\u2018extend\u2019)\uff0c\u4e00\u822c\u4e0d\u7528\u8fd9\u4e2a\uff0c\u76f4\u63a5\u590d\u5236\u5230\u9879\u76ee\u4e0b\u7528\u7b2c\u4e09\u79cd\u65b9\u6cd5\u76f4\u63a5\u8c03\u7528\uff1b<\/p>\n<p>\u4e09\u3001\u5c06\u81ea\u5b9a\u4e49\u51fd\u6570\u653e\u7f6e\u4e8e\u9879\u76ee\u51fd\u6570\uff1aAppPath\/Common\/Common\/function.php\uff08\u82e5\u6ca1\u6709\u8be5\u6587\u4ef6\uff0c\u9700\u65b0\u5efa\uff09\u4e0b\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528\uff0c\u5728\u63a7\u5236\u5668\u548cMODEL\u7c7b\u4e2d\u90fd\u53ef\u4ee5\u3002<\/p>\n<p>\u56db\u3001\u5c06\u81ea\u5b9a\u4e49\u51fd\u6570\u653e\u7f6e\u4e8e\u9879\u76ee\u51fd\u6570\uff1aAppPath\/AppName\/Common\/function.php\uff08\u82e5\u6ca1\u6709\u8be5\u6587\u4ef6\uff0c\u9700\u65b0\u5efa\uff09\u4e0b\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528\uff0c\u5728\u8be5AppName\u7684\u63a7\u5236\u5668\u548cMODEL\u7c7b\u4e2d\u90fd\u53ef\u4ee5\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5efa\u8bae\u4f7f\u7528\u7b2c\u4e09\u3001\u56db\u79cd\u65b9\u5f0f\uff0c\u5c3d\u91cf\u4e0d\u8981\u53bb\u4fee\u6539ThinkPHP\u6846\u67b6\u4e2d\u7684\u6587\u4ef6\uff0c\u907f\u514d\u5728\u5347\u7ea7\u65f6\uff0c\u9020\u6210\u4e0d\u5fc5\u8981\u7684\u9ebb\u70e6~<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"qua-blog-post-description\">thinkphp\u4e2d\u81ea\u5b9a\u4e49\u51fd\u6570\u7684\u4f7f\u7528\u65b9\u6cd5\uff1a \u4e00\u3001\u5c06\u51fd\u6570\u653e\u7f6e\u4e8e\u7cfb\u7edf\u76ee\u5f55:ThinkPHP\/Common\/funct [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"_links":{"self":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts\/32"}],"collection":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":0,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}