Home PHP Framework ThinkPHP Import an external project into the Thinkphp environment

Import an external project into the Thinkphp environment

Dec 10, 2020 pm 02:19 PM

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 of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

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

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1653
14
PHP Tutorial
1251
29
C# Tutorial
1224
24