In the new company to work the next day, summed up some of the problems encountered in the project, large and small problems I will summarize, some practical code and usage I will be published.
Now let's summarize two small problems and then go home and have time to get some dry goods.
The use of the include in thinkphp is actually very simple, that is, all the template files under the TPL are equivalent to the ingress file.
Which means you want to include tpl/default/left.html
Written <?php include './app/tpl/default/left.html '?>
The app is the project name and what your name is.
Database Chinese character deposit All change????? The problem
Create DATABASE mydb default character set UTF8 collate utf8_general_ci; Set character sets when building a library
Experience accumulates the usage of the include in thinkphp, and the Chinese characters in the database are deposited into???? The problem