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:
- Create table 'think _ Demo '(
- 'Id' int (11) unsigned not null auto_increment,
- 'Title' varchar (255) not null default '',
- 'Content' longtext not null,
- Primary key ('id ')
- ) ENGINE = MyISAM default charset = utf8;
2. create an entry file