ThinkPHP -- it is very easy to enable the grouping module for the module grouping. configure the APP_GROUP_LIST parameter and the DEFAULT_GROUP parameter. APP_GROUP_LIST & gt; Admin, Home, DEFAULT_GROUP & gt; Home, set Home as the default project. Before we enable the project group, because two projects are used, the URL addresses are: s thinkPHP -- Module group.
It is very easy to enable the grouping module. configure the APP_GROUP_LIST parameter and the DEFAULT_GROUP parameter.
'App _ GROUP_LIST '=> 'admin, home ',
'Default _ group' => 'home' to set Home as the DEFAULT project.
Before we enable the project group, because we use two projects, the URL addresses are:
Http: // serverName/index. php/Index/index Home project address
Http: // serverName/Admin/index. php/Index/index Admin project address
After grouping is adopted, the URL address becomes:
Http: // serverName/index. php/Home/Index/index Home group address
Http: // serverName/index. php/Admin/Index/index Admin group address
If Home is the default group, it can also be changed to http: // serverName/index. php/Index/index
Specific instructions: http://doc.thinkphp1.cn/manual/module_group.html