cakephp 3.1.7 发布,此版本主要是一些 bug 修复和小改进:
Bug 修复
Paginator::numbers() now treats numeric string values in first and last as strings.
Using invalid associations in ExistsIn rules now raises a helpful error.
BelongsToMany associations can have their fields limited through queryBuilder closures.
The $query->func()->now() query function works as expected in where conditions now.
XmlView no longer fails when attempting to output XML documents built with DOMDocument.
BelongsToMany _joinData is now marshalled consistently by Table::patchEntity() .
Missing Controller error pages display the correct class name and path for prefixed controllers.
小改进
IntegrationTestCase::cookieEncrypted() was added. This helper lets you set the value of encrypted cookies.
IntegrationTestCase::assertCookieEncrypted() was added. This assertion lets you compare encrypted cookie values.
FormHelper now forwards templateVars to the templates for submitContainer and inputSubmit .
Collection::chunk() was added. This method lets you split a collection into equal sized chunks.
Exception classes were added for Conflict (409), Gone (410), Not Acceptable (406) and Service Unavailable (506).
Configure::readOrFail() was added. This method will read a value from Configure and raise an exception if it does not exist.
下载: cakephp-3-1-7.zip
立即学习“PHP免费学习笔记(深入)”;
CakePHP 是一个运用了诸如ActiveRecord、Association Data Mapping、Front Controller和MVC等著名设计模式的快速开发框架。该项目主要目标是提供一个可以让各种层次的PHP开发人员快速地开发出健壮的Web应用,而 又不失灵活性。主要特性:
基于MVC架构
视图支持Ajax
内置校验框架
提供应用程序的基础模块和CRUD 代码自动生成功能
提供处理session,request,security的组件
灵活的视图缓存功能
面向对象
无需配置:只要安装好数据库
兼容PHP4和PHP5。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号