General development process and instance for creating applications in ThinkPHP

Source: Internet
Author: User
Thinkphp is a free and open-source php Framework. It provides various components required to build and deploy websites. Thinkphp introduction: http: thinkphpcnManual16

Thinkphp is a free and open-source php Framework. It provides various components required for website construction to help users quickly build and deploy websites.

Thinkphp introduction: http://thinkphp.cn/Manual/16

Official full Development Manual: http://thinkphp.cn/Manual

The general development process for using ThinkPHP to create an application is as follows:

Create a database and a data table (skip without database operations)

Name the project and create the project entry file;

Complete the project configuration. (ignore the configuration)

Create a controller class;

Create a model class. (you do not need to create a simple model class)

Create a template file;

Run and debug.

1. create a database demo and table think_demo in the database. take MySQL as an example:

  1. Create table 'think _ Demo '(
  2. 'Id' int (11) unsigned not null auto_increment,
  3. 'Title' varchar (255) not null default '',
  4. 'Content' longtext not null,
  5. Primary key ('id ')
  6. ) ENGINE = MyISAM default charset = utf8;

2. create an entry file

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.