欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

CakePHP 3.1.7 发布,PHP 开发框架

程序员文章站 2022-04-01 21:59:12
...
CakePHP 3.1.7 发布,此版本主要是一些 bug 修复和小改进:

Bug 修复

  • Paginator::numbers() now treats numeric string values in first and last as strings.

  • Using invalid associations in ExistsIn rules now raises a helpful error.

  • BelongsToMany associations can have their fields limited through queryBuilder closures.

  • The $query->func()->now() query function works as expected in where conditions now.

  • XmlView no longer fails when attempting to output XML documents built with DOMDocument.

  • BelongsToMany _joinData is now marshalled consistently by Table::patchEntity() .

  • Missing Controller error pages display the correct class name and path for prefixed controllers.

小改进

  • IntegrationTestCase::cookieEncrypted() was added. This helper lets you set the value of encrypted cookies.

  • IntegrationTestCase::assertCookieEncrypted() was added. This assertion lets you compare encrypted cookie values.

  • FormHelper now forwards templateVars to the templates for submitContainer and inputSubmit .

  • Collection::chunk() was added. This method lets you split a collection into equal sized chunks.

  • Exception classes were added for Conflict (409), Gone (410), Not Acceptable (406) and Service Unavailable (506).

  • Configure::readOrFail() was added. This method will read a value from Configure and raise an exception if it does not exist.

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

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

基于MVC架构

视图支持Ajax

内置校验框架

提供应用程序的基础模块和CRUD 代码自动生成功能

提供处理session,request,security的组件

灵活的视图缓存功能

面向对象

无需配置:只要安装好数据库

兼容PHP4和PHP5。