芊雅企服
常用框架/库

PHP 开发框架 CakePHP 3.3.12 和 3.4.0-RC1 发布

芊雅企服技术团队766 次浏览约 3 分钟读完

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

CakePHP 3.3.12 引入了以下的新功能

  • CLI 命令现在可以通过在参数上设置 multiple 选项多次接受参数
  • ignoreDirty 选项被添加到 CounterCacheBehavior,这使得能够忽略计数器缓存字段被更新
  • 为 debug(); die(); 添加 dd() 作为快速替代方案

发布主页和下载地址

CakePHP 3.4.0-RC1

这是 3.4.0 的候选发布版本。3.4.0 对 CakePHP 提供了一些大大小小的改进,还会弃用将在 4.0.0 中删除的几个功能。

Bugfixes and Minor Features

  • InstanceConfigTrait::config() has been deprecated. Instead you should used setConfig() and getConfig() methods.
  • Routes can now use the _host option to restrict which hosts routes will match on.
  • Router::parse(), RouteCollection::parse() and Route::parse() have all been deprecated. Instead you should use the parseRequest() method which has access to the entire request allowing more flexible routing to be created.
  • Subcommands will inherit their description from the parent shell if they don’t have a description explicitly set.
  • HtmlHelper no longer emits <![CDATA blocks by default. If you use an XHTML document type, you may need to enable <![CDATA again using the safe option.
  • Collection::every() now returns true for empty collections. This rectifies a mistake made in 3.2.
  • TranslateBehavior::translateField() was added.

发布主页和下载地址

相关文章

免费获取你的专属方案。

资深技术顾问一对一诊断需求,为你量身定制方案与报价。

  • 免费需求诊断与方案建议
  • 透明报价,工期明确
  • 现成方案与定制开发灵活组合
电话咨询135 0699 3986

信息仅用于顾问联系你,绝不外泄。

电话咨询免费获取方案

和技术顾问聊聊,免费拿方案。

说说你的行业和想法,顾问免费评估方案与报价。

电话咨询135 0699 3986一键拨打
微信号fzqianya
技术顾问微信二维码
微信扫一扫添加技术顾问,直接沟通需求截图保存后,在微信“扫一扫”中选择图片识别

不方便沟通?留下电话,顾问回电