Home > Article > PHP Framework > Import an external project into the Thinkphp environment
The following tutorial column of thinkphp framework will introduce to you how to import an external project into the Thinkphp environment. I hope it will be helpful to friends in need!
1: At the beginning of this blog post, assume that our Xmapp environment has been set up and the Thinkphp environment has been successfully installed.
1: Screenshot of successful Xmapp installation:
##2: Thinkphp installation Successful screenshot: 2: The meaning of each folder directory in Thinkphp: As shown in the picture, it is the app file Explanation of the directories under the subfolder Thinlphp folder: Thinkphp.php: The public entry file of the framework Common: Contains some public files, system definitions, system functions and conventions of the framework Configuration, etc. Lang: System language file directory Lib: System base class library directory Tpl: System template directory Mode: Framework mode extension directory Three: Import a project on Github into the Thinkphp framework and run it. 1: My xampp is installed on the C drive; apache ports are 8888 and 443; Mysql port is 3306; xampp After the environment is installed, a htdocs folder will appear under the xampp folder. This word means "root, root directory". This is the entrance to the PHP environment. 2: Find a Chinese project on Github, click "clone or download" to download the zip package. After decompression: 3: Return to the configuration environment of xmapp Location, copy all the files in the "Thinkphp_init-master" folder after decompressing the project to the app folder in htdocs. Here I backed up the previous Thinkphp environment. When you enter "http://localhost:8888/app/admin" in the browser, Thinkphp will use various "routes, URLs, interfaces... ..." A lot of work was done in these ways that I didn't know, and then it started running. 4: Okay, the project is really running! Look, it's really running! 5: I only know some basic syntax for php, but I know nothing about Thinkphp. If there is something wrong or inaccurate in this blog post, I welcome corrections. I also welcome those who pass by. If you see it and have time to reply, please and point me in the direction. Next step. Which aspects should be studied, and also about the MVC model and routing mechanism in PHP. . . It’s really boring to read the official documents for these things. I hope there are good projects that you can recommend to me ! ! !The above is the detailed content of Import an external project into the Thinkphp environment. For more information, please follow other related articles on the PHP Chinese website!