Learn thinkphp (ii)

Source: Internet
Author: User

thinkphp Core file: Think folder directory under the Library folder

Thinkphp's entry file is: thinkphp.php, we introduce this entry file when we create the project!!!

One, the deployment of the project:

Example: Deploying a shop Project

1. Create a portal file under the TP directory index.php

2, access to the Portal file system will automatically be the corresponding application directory file shop created

3. Open Home folder

4, MVC mode

M: Model Data layer, responsible for data manipulation

V: View View layer, responsible for displaying views

C: Controller controllers to implement business logic

Two, controller access and UR address 4 forms

Commonly used in these two types of: we choose the first form of

    1. http:// /index.php/ module / controller / operation method path mode PathInfo
    2. HTTP :/ / module / controller / operation method override mode R Ewrite

Configuration of the URL:

config.php is the configuration file of our current project, we can modify the file to reach the configuration variable directory, This file will overwrite the convertion.php configuration variable during the system running.

Our system is compatible with 4 of the use of the URL address pattern, the system will sometimes automatically create a URL address, it will be based on the current mode URL address creation uses

Learn thinkphp (ii)

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.