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
- http:// /index.php/ module / controller / operation method path mode PathInfo
- 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)