CakePHP 3.0.9 发布,此版本是 3.0 分支的维护版本,更新内容如下:
Index and constraint reflection in MySQL now scopes to the current database.
.
is now allowed in ObjectRegistry keys. This allows cache configurations to have .
in their names.
Datetime validation now correctly handles meridian values.
Improved API documentation.
Pagination link generation is correct with custom routes.
Entity::extractOriginalChanged()
now returns properties that were initially null.
Marshalling _joinData
in belongsToMany associations with existing entities is now handled correctly.
Text::tokenize()
now works as expected when the separator is a multi-byte character.
Folders generated by i18n extract
have the correct permissions assigned.
Entities are now marked as 'clean' after the afterSave event.
The ORM does not emit UPDATE statements for hasMany and belongsToMany associations that have not actually changed.
Response::file()
now accepts files with ..
in the basename.
Associations can now define a bindingKey()
this column allows you to bind associations to non-primary key columns. This aims to remove the need to define foreignKey => false
in associations.
Collections can now be serialized and unserialized with ease. This makes caching collections easier.
Exception attributes are no longer logged when debug=0.
Response::body()
accepts a callable that can echo content directly or return the response body.
Email::configuredTransport()
was added to allow enumeration of the configured email transports.
String templates accept .
and _
in variable names. This improves compatibility with arrays generated by Hash::flatten()
Custom Type classes can define a baseType that maps to a simpler type. This makes it easier for FormHelper to generate inputs for custom types.
i18n extract
now supports a --no-location
option. This option will omit the location comments for messages from the generated POT file.
下载: cakephp-3-0-9.zip 。
CakePHP是一个运用了诸如ActiveRecord、Association Data Mapping、Front Controller和MVC等著名设计模式的快速开发框架。该项目主要目标是提供一个可以让各种层次的PHP开发人员快速地开发出健壮的Web应用,而 又不失灵活性。主要特性:
基于MVC架构
视图支持Ajax
内置校验框架
提供应用程序的基础模块和CRUD 代码自动生成功能
提供处理session,request,security的组件
灵活的视图缓存功能
面向对象
无需配置:只要安装好数据库
兼容PHP4和PHP5。