ThinkPHP應用分組部署與訪問

2021-06-17 23:34:22 字數 406 閱讀 1688

1.建立專案唯一入口檔案index.php

2.建立公共配置資料夾及檔案 conf/config.php

要想實現應用分組必須配置如下兩個引數:

'default_group'=>'index',//預設分組

return array_merge(include './conf/config.php',$array);

//$arry 為本配置檔案中額外新增的配置項

4.在action、model下進行分組index,admin目錄結構如下:

5.瀏覽器方法:

注:index.php可以通過在apache下進行配置而不需要輸入。

ThinkPHP應用分組部署與訪問

1.建立專案唯一入口檔案index.php 2.建立公共配置資料夾及檔案 conf config.php 要想實現應用分組必須配置如下兩個引數 default group index 預設分組 return array merge include conf config.php array arry...

thinkPHP 模組分組

default group home 將home設為預設的專案。在我們啟用專案分組之前,由於使用的兩個專案,所以url位址分別是 http servername index.php index index home專案位址 http servername admin index.php index ...

thinkPHP 模組分組

default group home 將home設為預設的專案。在我們啟用專案分組之前,由於使用的兩個專案,所以url位址分別是 http servername index.php index index home專案位址 http servername admin index.php index ...