<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>

                ### 1、虛擬主機設置 路徑:```D:\wamp64\bin\apache\apache2.4.27\conf\extra``` ``` <VirtualHost *:80> DocumentRoot "F:\www\TP5.1\2.0\public" ServerName tp5-2.com ServerAlias tp5-2.com #ErrorLog "logs/Domain-error.log" #CustomLog "logs/Domain-access.log" combined </VirtualHost> ``` ### 2、Hosts文件設置 路徑:```C:\Windows\System32\drivers\etc\HOSTS``` ``` 127.0.0.1 tp5-2.com ``` ### 3、對模板進行全局替換配置 >[danger] 首先,我們需要對模板輸出替換進行設置,可以直接在源碼根目錄的 ```config/template.php``` 配置文件中添加: ``` // 對模板進行全局替換配置 'tpl_replace_string' => [ '__STATIC__'=>'/static', ] ``` ### 4、路由設置 >[info] 路由文件在源碼根目錄的 ```route``` 文件夾里面,有一個 ```route.php``` 文件,打開它。 代碼如下: ``` <?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: liu21st <liu21st@gmail.com> // +---------------------------------------------------------------------- use think\facade\Route; Route::rule('/', 'index/index/index'); // 欄目路由 Route::rule('cate/add','index/cate/add'); Route::rule('cate/edit/:id', 'index/cate/edit'); Route::rule('cate/del/:id', 'index/cate/del'); Route::rule('cate', 'index/cate/lst'); return [ ]; ``` ### 5、Session設置 >[info] Session 配置文件在源碼根目錄的 ```config``` 文件夾里面,有一個 ```session.php``` 文件,打開它。 代碼如下: ``` <?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: liu21st <liu21st@gmail.com> // +---------------------------------------------------------------------- // +---------------------------------------------------------------------- // | 會話設置 // +---------------------------------------------------------------------- return [ 'id' => '', // SESSION_ID的提交變量,解決flash上傳跨域 'var_session_id' => '', // SESSION 前綴 'prefix' => 'think', // 驅動方式 支持redis memcache memcached 'type' => '', // 是否自動開啟 SESSION 'auto_start' => true, ]; ``` >[success] 至此,我們的項目配置也就配置完了
                  <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>

                              哎呀哎呀视频在线观看