search
HomePHP FrameworkThinkPHPImport 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!

Import an external project into the Thinkphp environment

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!

Statement
This article is reproduced at:cnblogs. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version