thinkphp first section structure

Source: Internet
Author: User

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

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.