CakePHP 3.1.5 发布,PHP 开发框架

jopen 8年前

CakePHP 3.1.5 发布,PHP 开发框架

CakePHP 是一个运用了诸如ActiveRecord、Association Data Mapping、Front Controller和MVC等著名设计模式的快速开发框架。该项目主要目标是提供一个可以让各种层次的PHP开发人员快速地开发出健壮的Web应用,而 又不失灵活性。主要特性:

基于MVC架构
视图支持Ajax
内置校验框架
提供应用程序的基础模块和CRUD 代码自动生成功能
提供处理session,request,security的组件
灵活的视图缓存功能
面向对象
无需配置:只要安装好数据库
兼容PHP4和PHP5。

CakePHP 3.1.5 发布,此版本是个维护版本,主要是一些 bug 修复和小改进,主要 bug 修复:
  • Collection::toArray() now drops the keys when dealing with RecursiveIterator. This makes the collection features easier to reason about as they generally do what people have been expecting.

  • Improved API documentation.

  • ResultSet::isEmpty() no longer consumes records on buffered iterators that had not already been iterated.

  • The ORM no longer emits invalid queries when eager loading associations using the subquery strategy, and using an ORDER BY clause. Fields used in ORDER BY clauses are also included in the selected fields.

  • Error handling is now compatible with PHP7. This removes the last known compatibility error with PHP7.

  • BelongsToMany associations use bindingKey correctly now.

  • Integer marshalling correctly accepts negative values now.

  • When executing Shell 'main' method the current command name is set to 'main'.

  • spellcheck is now a standard attribute. Unlike most HTML5 attributes, spellcheck requires 'true' and 'false' values, which means it cannot be a minimized attribute.

  • CSRF validation is applied to all HTTP methods that are not 'GET', 'OPTIONS' or 'HEAD'. This prevents invalid HTTP methods from bypassing CSRF validation.

  • RouterBuilder::resources() correctly inflects the object id when using 'inflect' => 'dasherize' and nested resources.

  • TimeHelper::format() no longer shifts string datetimes to the supplied timezone before formatting.

  • Shell::createFile() no longer converts \n to \r\n silently when running on windows.

更多改进内容请看发行说明

下载:cakephp-3-1-5.zip