发布于 2017-01-15 00:49:53 | 68 次阅读 | 评论: 0 | 来源: 网友投递
CakePHP PHP开源框架
CakePHP是一个运用了诸如ActiveRecord、Association Data Mapping、Front Controller和MVC等著名设计模式的快速开发框架。该项目主要目标是提供一个可以让各种层次的PHP开发人员快速地开发出健壮的Web应用,而 又不失灵活性。
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.