thinkphp v3.1.2 release is more powerful and secure

Source: Internet
Author: User
Keywords Safe thinkphp.
Tags ajax aliyun class configuration default function group http

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.

Related Article

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.