This article mainly introduces some basic usage methods of ThinkPHP. The editor thinks it is quite good, so I will share it with you now and give it as a reference. Let’s follow the editor and take a look.
First configure the database information in config.php under the Common/Conf folder
Then create a UserController.class.php under the Controller folder
This is the add.html template to display data, and comes with the if() judgment on ThinkPHP Writing $a eq 5 means $a==5
##Related recommendations:
Summary of the foundation and use of the ThinkPHP framework
Introduction and use of the TP framework
The above is the detailed content of Some basic usage methods of ThinkPHP. For more information, please follow other related articles on the PHP Chinese website!