<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                熟悉thinkphp3.2.3開發的同學們,都已經習慣了index.php文件直接放在項目路徑中,而thinkphp5是放在了public 文件夾中;而index.php文件并沒有要求必須放在哪里,所以我們可以把index.php文件放在項目跟目錄中,所要變動 的是index.php文件中引用文件的位置:如下 <?php // 定義應用目錄 define('APP_PATH', __DIR__ . '/apps/'); // 加載框架引導文件 require __DIR__ . './thinkphp/start.php'; 這里心細的同學會發現,我的應用目錄名稱改變了/apps/,剛接觸thinkphp5開發的同學會發現tp3.2直接就可以自動 生成文件夾,而tp5會報錯;這里我告訴大家一個方法,首先在根目錄中建立一個文件夾與你的應用目錄名稱要相同 例如我在更目錄中建立的,文件夾名稱為apps的文件夾,不要以為這樣就可以了,我們還需把index.php文件修改一下 如下: <?php // 定義應用目錄 define('APP_PATH', __DIR__ . '/apps/'); // 加載框架引導文件 require __DIR__ . './thinkphp/base.php'; //這里需要修改 $build = include './build.php'; \think\Build::run($build); 心細的同學會發現,下面又多了兩行代碼,這里我們就要使用build.php文件了,內容如下: <?php return [ // 生成應用公共文件 '__file__' => ['common.php', 'config.php', 'database.php', 'route.php', 'tags.php'], // 定義demo模塊的自動生成 (按照實際定義的文件名生成) 'index' => [ '__file__' => ['common.php'], '__dir__' => ['behavior', 'controller', 'view'], 'controller' => ['Index', 'Common'], 'view' => ['index/index'], ], 'admin' => [ '__file__' => ['common.php'], '__dir__' => ['controller', 'model', 'view'], 'controller' => ['Index', 'Common'], 'model' => ['Admin'], 'view' => ['index/index'], ], // 其他更多的模塊定義 ]; 這回你在運行一下試一試,看看是否可以了,并且文件都已經建立好了 特別值得說一下,我把index.php文件放在了根目錄中,如果不想修改index.php文件,要注意引用文件的位置 建立好項目所需文件之后,我們要把index.php文件修改回來如下 <?php // 定義應用目錄 define('APP_PATH', __DIR__ . '/apps/'); // 加載框架引導文件 require __DIR__ . './thinkphp/start.php'; 如果要添加模塊,在index.php文件中使用 \think\Build::module('other'); //建好之后,再把這個綁定模塊語句注釋或刪除diao,要下班了,今天就到這里 明天周末,如果沒事我將繼續更新,希望對大家有用
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看