ThinkPHP5 builds a CMS system from scratch (1)

Understanding and learning thinkphp5 should be at the end of 2016. At that time, I hadn't touched the thinkphp3 version. I felt that it was easy to learn tp5 directly through the manual. Now I record it from zero and build an extensible CMS.

1. ThinkPHP environment construction

I use the wampServer download address here (you can also use phpStudy), download, install (try not to install wamp on the system disk), and run.

If port 80 is occupied, the environment will not get up (the icon shows red or yellow), click here for the solution .

After the icon is displayed in green, enter http://localhost in the browser (as shown below), indicating that the environment is running successfully.

2. Introduce ThinkPHP5

Open thinkphp official website  http://www.thinkphp.cn/down/framework.html   to find the latest full version of thinkphp. After downloading to the local, open the project storage directory (as shown below)

I will install wamp on the E drive, find the www directory in the wamp directory, and create a new folder, which is the final location and project name of your project, which can be customized.

Copy and paste the downloaded thinkphp5 file into the cms directory (as shown below)

At this point, enter http://localhost/cms/public in the browser navigation bar to run ThinkPHP5, and the following image will be displayed successfully:

At this point, the construction and introduction of the ThinkPHP5 environment is completed.

To be continued,,,

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325900390&siteId=291194637