thinkphp Website: http://thinkphp.cn
Input URL: localhost:8080/demo/
Indicates that the thinkphp installation was successful
The directory structure is as follows:
Application subdirectory Structure:
Common: Common Files directory
Home:home templates
Runtime: Record running information
Home directory:
Common: Storing Public information
Conf: Configuration information
Controller: Control class, C layer
Model: template class, M-layer
View: Views, V-layer
Index.html: To prevent viewing the directory, the content is empty
Controller under Directory
We can modify the index method and then create a new Xin method
In the browser, type: localhost:8080/demo/index.php/home/index/xin
Where home represents the module, index represents Indexcontroller, and the latter Xin represents the Xin method we wrote
localhost:8080/demo/index.php
Localhost:8080/demo/index.php/home/index/index the same effect
Write the following code in the IndexController.class.php.
Logs is generated under runtime's
Summary: Application below directory
thinkphp directory structure with application peers
Directory structure under think:
thinkphp first section structure