thinkphp Development Environment Construction

Source: Internet
Author: User


Don't say much nonsense, straightforward!

1) to the official http://www.thinkphp.cn/download the latest version of the development package

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/24/wKiom1XdciHShxFYAAEEx5TeP88009.jpg "title=" Qq20150826155803.png "alt=" Wkiom1xdcihshxfyaaeex5tep88009.jpg "/>

We just need to focus on thinkphp this folder is OK.


2) If you are using a development tool, here I am using Eclipse for PHP, first create a new project in the tool

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/24/wKiom1XdczzCWOioAADDa4GwL84796.jpg "title=" Qq20150826160320.png "alt=" Wkiom1xdczzcwoioaadda4gwl84796.jpg "/>

Here I create a demo project, and then copy the thinkphp folder to the project root, which completes the first step.

There are several important documents in the development package for you to introduce:

-"1 Conf folder is the think official configuration folder, which contains the full configuration of the thinkphp framework, if we need the relevant configuration in our project can go to this folder to convention.php this file.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/25/wKiom1XddAKzPx3lAAA-547M_vM231.jpg "title=" Qq20150826160649.png "alt=" Wkiom1xddakzpx3laaa-547m_vm231.jpg "/>

2 Library core resource pool, the official important class library and the function library are all in this area.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/25/wKiom1XddITgi2oqAAA9iX6o1-g196.jpg "title=" Qq20150826160853.png "alt=" Wkiom1xdditgi2oqaaa9ix6o1-g196.jpg "/>


3 thinkphp.php This is the frame entry file. We also include this file when we configure our own project.


3) under the project root directory, create a new index.php as the entry file for the project, define the project name, the default module, including the entry file. 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/21/wKioL1Xdd-qiOBHfAAII7Zho5BI042.jpg "title=" Qq20150826161425.png "alt=" Wkiol1xdd-qiobhfaaii7zho5bi042.jpg "/>

This is part of my own real project in the portal file, people in this form, the most important thing is to include the framework portal file, and then define the project module. The previous check PHP environment can not, but here also to explain a little bit too low PHP version. This integrated development platform can be used in accordance with the official recommendation of Wampserver.


4 then access in the browser

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/25/wKiom1Xddy-horG2AABeNW-QcMI732.jpg "style=" float: none; "title=" Qq20150826162009.png "alt=" Wkiom1xddy-horg2aabenw-qcmi732.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/21/wKioL1XdeUeiFrgbAAD5nWocOsk236.jpg "style=" float: none; "title=" Qq20150826162016.png "alt=" Wkiol1xdeueifrgbaad5nwocosk236.jpg "/>


This interface is available for use.

Then this time you go back to the tool and refresh the project to see that some directories are automatically generated.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/21/wKioL1XdeZTxeSNNAABDf3-hdFQ483.jpg "title=" Qq20150826162139.png "alt=" Wkiol1xdeztxesnnaabdf3-hdfq483.jpg "/>


This time you can use it!

This generated directory can be further increased according to the official configuration, here I generated the most fundamental module.


This article is from the "Siege Lion" blog, please be sure to keep this source http://crazyzxl.blog.51cto.com/8781147/1688508

thinkphp Development Environment Construction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.