The ThinkPHP3.1.2 version is more powerful and secure than the 3.1 version and is a stable version of the recommended upgrade due to the recommended features and security improvements that have been tested by the official team.
Update
The main updates are as follows:
Independent grouping function
Template inheritance
module and Operation mappings
Ajax adds JSONP format support
Grouping supports configuring default modules and actions individually
Optimization of core compiling process
SAE Engine upgrades
Improved paging classes
Fixed a http://www.aliyun.com/zixun/aggregation/11233.html of query language "> security risks
View detailed 3.1.2 Update log
Upgrade
The 3.1 version can be easily upgraded to the 3.1.2 version, with only the following items to be noted:
1, the template theme to switch the time no longer detect the existence of the topic directory, to configure the switch template list mode, use the following way to configure:
' Tmpl_detect_theme ' =>true, ' theme_list ' => ' default,other_theme ',
2, due to the model of the form of the legality of the detection of the attribute has been named normalization adjustment, if the use of this function, and configured the model Insert_fields and Update_fields properties, please change to Insertfields and Updatefields properties;
3, if the use of global filtering configuration var_filters parameters, the definition of the filtering method, please note that because the array_map changed to array_walk_recursive recursive filtering, so the filter method to refer back to the way return, action class _get_post and other methods of filtering are unaffected. Filter method Definition Reference:
Function Filter_fun (& $value) {$value = Htmlspecialchars ($value); }
If you are upgrading from version 3.0, refer to the upgrade instructions in the article ThinkPHP3.1 release.