PHP 开发框架,CakePHP 3.0.8 发布
CakePHP 是一个运用了诸如ActiveRecord、Association Data Mapping、Front Controller和MVC等著名设计模式的快速开发框架。该项目主要目标是提供一个可以让各种层次的PHP开发人员快速地开发出健壮的Web应用,而 又不失灵活性。主要特性:
基于MVC架构
视图支持Ajax
内置校验框架
提供应用程序的基础模块和CRUD 代码自动生成功能
提供处理session,request,security的组件
灵活的视图缓存功能
面向对象
无需配置:只要安装好数据库
兼容PHP4和PHP5。
bug 修复
-
EntityTrait::toArray()
now handles mixed arrays better. Previously if the first element was an entity, it assumed that all elements were entities. -
Pagination now preserves query string arguments with
as their value.
-
Validation::multiple()
now correctly handles '0'. -
Previously it was impossible to use dot notation on two different calls to matching/contain when part of the string was shared (for example Articles.SpecialTags.Tags and Articles.SpecialTags.Authors).
-
TableRegistry::get()
now correctly merges pre-configured options. -
Table names in
UPDATE
queries are correctly quoted now. -
Fixtures now correctly reflect composite primary keys when generated.
-
Both
[]
and''
are now treated the same when saving belongsToMany associations. This fixes silent failures when '' was used. -
Numeric fields are cast to their string values when creating form security tokens. This resolves issues where integer values would cause validation failures.
-
CsrfComponent now correctly sets the cookie expiry date.
-
The list of available shell commands is now correct if there is an app Shell with the same name as a core one.
-
Multicheckboxes generated with complex input types are now checked/disabled correctly.
-
When updating belongsToMany links, association conditions are used. This fixes issues with polymorphic joint tables.
-
Pagination with SQLServer 2008 now works better.
-
AuthComponent no longer causes infinite redirects when an ajax request fails and
/
requires authentication. This was a regression in 3.0.7.
改进
-
The fallback domain for translations can be disabled with
I18n::useFallback(false)
. -
PaginatorComponents'
sortWhitelist
option now allowsfalse
to disable sorting entirely. -
Components now have a
response
property set during initialization. -
cake i18n extract
now generates missing directories.
详细改进请看更新日志,下载:cakephp-3-0-8.zip。