CakePHP 4.3.0 版本正式发布,PHP 快速开发框架

栏目: 软件资讯 · 发布时间: 4年前

内容简介:CakePHP 发布了 4.3.0 正式版,CakePHP 是一个运用了诸如 ActiveRecord、Association Data Mapping、Front Controller 和 MVC(model–view–controller) 等著名设计模式的开源 Web 框架,用 PHP 编写,以 Ruby...

CakePHP 发布了 4.3.0 正式版,CakePHP 是一个运用了诸如 ActiveRecord、Association Data Mapping、Front Controller 和 MVC(model–view–controller) 等著名 设计模式 的开源 Web 框架,用 PHP 编写,以 Ruby on Rails 的概念为模型,并在 MIT 许可下进行分发。

主要更新:

  • 添加了一个新的 fixture 系统,它允许使用现有的 migrations SQL 转储文件来定义架构,(包括支持 cake's migrations 和 SQL 转储文件)。
  •  加入 TestSuite\HttpMockTrait ,便于模拟 HTTP 客户端请求
  • 加入 LocatorAwareTrait::fetchTable()  ,让 getTableLocator()->get() 更符合人体工程学。
  • 加入 Controller::middleware(),这个方法可以定义特定于控制器的中间件,或者当前控制器的操作。
  • deprecationWarning() 不再发出重复的警告。
  • Form 对象支持多个验证器,并利用与 ORM 类似的接口来使用这些验证器。
  • Logged SQL 查询现在使用布尔值,更容易粘贴到 repl 里面。
  • cake console 指令被提取到一个新的 cakephp/repl 包中。
  • CspMiddleware 可以透明地添加基于 nonce 的策略。
  • FormHelper 将自动设置其他 ARIA 属性。
  • ORM 现在可以清楚地将用户时区的日期和时间设置为应用的时区。
  • CakePHP 的依赖组件 league/container 升级到 4.1.1 版本。

更新公告:https://github.com/cakephp/cakephp/releases/tag/4.3.0


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Beginning Google Maps API 3

Beginning Google Maps API 3

Gabriel Svennerberg / Apress / 2010-07-27 / $39.99

This book is about the next generation of the Google Maps API. It will provide the reader with the skills and knowledge necessary to incorporate Google Maps v3 on web pages in both desktop and mobile ......一起来看看 《Beginning Google Maps API 3》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器