index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. <!DOCTYPE HTML>
  2. <html lang="" >
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  6. <title>简介 · GitBook</title>
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8. <meta name="description" content="">
  9. <meta name="generator" content="GitBook 3.2.3">
  10. <link rel="stylesheet" href="gitbook/style.css">
  11. <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
  12. <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
  13. <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
  14. <meta name="HandheldFriendly" content="true"/>
  15. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  16. <meta name="apple-mobile-web-app-capable" content="yes">
  17. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  18. <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
  19. <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
  20. <link rel="next" href="chapter1.html" />
  21. </head>
  22. <body>
  23. <div class="book">
  24. <div class="book-summary">
  25. <div id="book-search-input" role="search">
  26. <input type="text" placeholder="Type to search" />
  27. </div>
  28. <nav role="navigation">
  29. <ul class="summary">
  30. <li class="chapter active" data-level="1.1" data-path="./">
  31. <a href="./">
  32. 简介
  33. </a>
  34. </li>
  35. <li class="chapter " data-level="1.2" data-path="chapter1.html">
  36. <a href="chapter1.html">
  37. 基础用法
  38. </a>
  39. <ul class="articles">
  40. <li class="chapter " data-level="1.2.1" data-path="chapter1/pei-zhi.html">
  41. <a href="chapter1/pei-zhi.html">
  42. 配置
  43. </a>
  44. </li>
  45. <li class="chapter " data-level="1.2.2" data-path="chapter1/lu-you.html">
  46. <a href="chapter1/lu-you.html">
  47. 路由
  48. </a>
  49. </li>
  50. <li class="chapter " data-level="1.2.3" data-path="chapter1/kong-zhi-qi.html">
  51. <a href="chapter1/kong-zhi-qi.html">
  52. 控制器
  53. </a>
  54. </li>
  55. <li class="chapter " data-level="1.2.4" data-path="chapter1/mo-xing.html">
  56. <a href="chapter1/mo-xing.html">
  57. 模型
  58. </a>
  59. </li>
  60. <li class="chapter " data-level="1.2.5" data-path="chapter1/shi-tu.html">
  61. <a href="chapter1/shi-tu.html">
  62. 视图
  63. </a>
  64. </li>
  65. </ul>
  66. </li>
  67. <li class="chapter " data-level="1.3" data-path="qi-ta-bu-chong.html">
  68. <a href="qi-ta-bu-chong.html">
  69. 其他补充
  70. </a>
  71. <ul class="articles">
  72. <li class="chapter " data-level="1.3.1" data-path="qi-ta-bu-chong/param.html">
  73. <a href="qi-ta-bu-chong/param.html">
  74. Param
  75. </a>
  76. </li>
  77. <li class="chapter " data-level="1.3.2" data-path="qi-ta-bu-chong/tablehelper.html">
  78. <a href="qi-ta-bu-chong/tablehelper.html">
  79. TableHelper
  80. </a>
  81. </li>
  82. <li class="chapter " data-level="1.3.3" data-path="qi-ta-bu-chong/ke-zhi-xing-jiao-ben.html">
  83. <a href="qi-ta-bu-chong/ke-zhi-xing-jiao-ben.html">
  84. 可执行脚本
  85. </a>
  86. </li>
  87. </ul>
  88. </li>
  89. <li class="divider"></li>
  90. <li>
  91. <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
  92. Published with GitBook
  93. </a>
  94. </li>
  95. </ul>
  96. </nav>
  97. </div>
  98. <div class="book-body">
  99. <div class="body-inner">
  100. <div class="book-header" role="navigation">
  101. <!-- Title -->
  102. <h1>
  103. <i class="fa fa-circle-o-notch fa-spin"></i>
  104. <a href="." >简介</a>
  105. </h1>
  106. </div>
  107. <div class="page-wrapper" tabindex="-1" role="main">
  108. <div class="page-inner">
  109. <div id="book-search-results">
  110. <div class="search-noresults">
  111. <section class="normal markdown-section">
  112. <h1 id="phpbase2-&#x4F7F;&#x7528;&#x8BF4;&#x660E;">PHPBase2 &#x4F7F;&#x7528;&#x8BF4;&#x660E;</h1>
  113. <p>&#x901A;&#x8FC7;&#x591A;&#x5E74;&#x591A;&#x4E2A;&#x9879;&#x76EE;&#x7684;&#x7ECF;&#x5386;&#xFF0C;&#x6211;&#x4EEC;&#x5BF9;&#x6846;&#x67B6;&#x4E0D;&#x65AD;&#x8FDB;&#x884C;&#x8C03;&#x6574;&#xFF0C;&#x4EE5;&#x8FBE;&#x5230;&#x7B80;&#x6D01;&#x3001;&#x9AD8;&#x6548;&#x7684;&#x76EE;&#x6807;&#x3002;</p>
  114. <p>&#x672C;&#x6587;&#x6863;&#x5DF2;<code>phpbase2_demo</code>&#x8FDB;&#x884C;&#x8BB2;&#x89E3;&#x3002;</p>
  115. <p>&#x9879;&#x76EE;&#x6A21;&#x677F;&#x7ED3;&#x6784;&#x5982;&#x4E0B;</p>
  116. <pre><code>project root/
  117. &#x251C;&#x2500;&#x2500; protected // &#x53D7;&#x4FDD;&#x62A4;&#x76EE;&#x5F55;
  118. &#x2502; &#x251C;&#x2500;&#x2500; bin // &#x53EF;&#x6267;&#x884C;&#x811A;&#x672C;&#x76EE;&#x5F55;
  119. &#x2502; &#x251C;&#x2500;&#x2500; conf // &#x914D;&#x7F6E;&#x76EE;&#x5F55;
  120. &#x2502; &#x251C;&#x2500;&#x2500; controllers // &#x63A7;&#x5236;&#x5668;&#x76EE;&#x5F55;
  121. &#x2502; &#x251C;&#x2500;&#x2500; data // &#x6570;&#x636E;&#x76EE;&#x5F55;
  122. &#x2502; &#x251C;&#x2500;&#x2500; extensions // &#x6269;&#x5C55;&#x5DE5;&#x5177;&#x7C7B;&#x7684;&#x76EE;&#x5F55;
  123. &#x2502; &#x251C;&#x2500;&#x2500; models // &#x6A21;&#x578B;&#x76EE;&#x5F55;
  124. &#x2502; &#x251C;&#x2500;&#x2500; views // &#x89C6;&#x56FE;&#x76EE;&#x5F55;
  125. &#x2502; &#x2514;&#x2500;&#x2500; common.php // &#x9879;&#x76EE;&#x516C;&#x5171;&#x5B9A;&#x4E49;&#x6587;&#x4EF6;
  126. &#x251C;&#x2500;&#x2500; static // &#x9759;&#x6001;&#x8D44;&#x6E90;
  127. &#x2502; &#x251C;&#x2500;&#x2500; css
  128. &#x2502; &#x2514;&#x2500;&#x2500; js
  129. &#x2514;&#x2500;&#x2500; index.php // &#x5165;&#x53E3;&#x6587;&#x4EF6;
  130. </code></pre><p>&#x4E00;&#x6B21;&#x5B8C;&#x6574;&#x8BF7;&#x6C42;</p>
  131. <pre><code>php-fpm -&gt; index.php -&gt; common.php -&gt; conf
  132. &#x2514;&#x2500;&#x2500;&gt; controller &lt;-&gt; model
  133. &#x2514;&#x2500;&#x2500;&gt; view(json)
  134. </code></pre>
  135. </section>
  136. </div>
  137. <div class="search-results">
  138. <div class="has-results">
  139. <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
  140. <ul class="search-results-list"></ul>
  141. </div>
  142. <div class="no-results">
  143. <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <a href="chapter1.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 基础用法">
  151. <i class="fa fa-angle-right"></i>
  152. </a>
  153. </div>
  154. <script>
  155. var gitbook = gitbook || [];
  156. gitbook.push(function() {
  157. gitbook.page.hasChanged({"page":{"title":"简介","level":"1.1","depth":1,"next":{"title":"基础用法","level":"1.2","depth":1,"path":"chapter1.md","ref":"chapter1.md","articles":[{"title":"配置","level":"1.2.1","depth":2,"path":"chapter1/pei-zhi.md","ref":"chapter1/pei-zhi.md","articles":[]},{"title":"路由","level":"1.2.2","depth":2,"path":"chapter1/lu-you.md","ref":"chapter1/lu-you.md","articles":[]},{"title":"控制器","level":"1.2.3","depth":2,"path":"chapter1/kong-zhi-qi.md","ref":"chapter1/kong-zhi-qi.md","articles":[]},{"title":"模型","level":"1.2.4","depth":2,"path":"chapter1/mo-xing.md","ref":"chapter1/mo-xing.md","articles":[]},{"title":"视图","level":"1.2.5","depth":2,"path":"chapter1/shi-tu.md","ref":"chapter1/shi-tu.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2018-09-13T02:58:15.308Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-09-13T03:13:15.790Z"},"basePath":".","book":{"language":""}});
  158. });
  159. </script>
  160. </div>
  161. <script src="gitbook/gitbook.js"></script>
  162. <script src="gitbook/theme.js"></script>
  163. <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
  164. <script src="gitbook/gitbook-plugin-search/search.js"></script>
  165. <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
  166. <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
  167. <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
  168. <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
  169. </body>
  170. </html>