Current location - Training Enrollment Network - Books and materials - How to set up project grouping in thinkphp
How to set up project grouping in thinkphp
The steps are as follows:

1, the entry file defines the project name;

2. The project directory conf says:

APP _ GROUP _ LIST' =>' Home Page, Administrator',

DEFAULT _ GROUP' => home page,

APP _ GROUP _ MODE ' = & gt 1,

3. Create a folder module in the project directory OLCMS, and create Home and Admin in it;

4. Move all files in the index to the home directory and all files in the management directory to the management directory;

5. Move the above library to Home, Admin;;

6. Modify common to function.php;

7. The /admin.php called in the background is changed to/admin.php;

8. done.