发布于 2016-08-13 04:29:16 | 137 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

CakePHP PHP开源框架

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


CakePHP 3.3.0 发布了,这是 3.3 分支的稳定版本,该版本提供了若干大大小小的提升改进,也弃用了一些将会在 4.0.0 被删除的功能。

升级至 3.3.0

你可以使用 Composer 升级到 CakePHP 的新版:

php composer.phar require "cakephp/cakephp:~3.3"

弃用的功能

  • Router::mapResources() is deprecated. Use routing scopes and $routes->resources() instead.

  • Router::redirect() is deprecated. Use routing scopes and $routes->redirect() instead.

  • Router::parseNamedParams() is deprecated. Named parameter backwards compatibility will be removed in 4.0.0

  • CakeHttpClientResponse has had the following methods deprecated because they overlap with PSR7 interface methods:

  • statusCode() use getStatusCode() instead.

  • encoding() use getEncoding() instead.

  • header() use getHeaderLine() instead.

  • cookie() use getCookie() instead.

  • version() use getProtocolVersion() instead.

  • Dispatcher Filters are now deprecated. Use the new HTTP middleware features.

  • RequestActionTrait has been deprecated. Refactor your code to use view cells instead.

  • CakeUtilityCryptoMcrypt engine has been deprecated as the mcrypt extension is deprecated in PHP 7.1. Use the openssl driver instead.

这份迁移指南有一个完整介绍 3.3.0 新特性和已弃用功能的列表,我们建议您升级前先阅读这份指南,下面是 3.3.0 新功能的一个简短列表:

  • PSR7 Middleware support has been added. This is an opt-in feature that allows you to leverage the increasing number of PSR7 middleware libraries from the broader PHP community in your CakePHP application.

  • A new streamlined workflow for TranslateBehavior that makes creating forms for multiple translation values easier than before.

  • CakeNetworkHttpClient has been moved to CakeHttpClient. Its request and response objects now implement the PSR7 interfaces <http://www.php-fig.org/psr/psr-7/>__.

  • Additional support has been added for mapping complex data types. This makes it easier to work with geo-spatial types, and data that cannot be represented by strings in SQL queries.

  • A new JsonType was added. This new type lets you use the native JSON types available in MySQL and Postgres. In other database providers the json type will map to TEXT columns.

  • When entities are converted into JSON, the associated objects are no longer converted to an array first using toArray(). Instead, the jsonSerialize() method will be invoked on all associated entities. This gives you more flexibility and control on which properties are exposed in JSON representations of your entities.

  • You can now easily paginate multiple queries in a single controller action/view template.

  • To help you better manage cached data from the CLI environment, a shell command has been added that exposes methods for clearing cached data.

下载

Source code (zip)

Source code (tar.gz)



历史版本 :
CakePHP 3.5.10 发布,PHP 开发框架
CakePHP 3.5.9 发布,PHP 开发框架
CakePHP 2.10.5 发布,PHP 开发框架
CakePHP 3.5.6 发布,PHP 开发框架
CakePHP 3.5.5 发布,PHP 开发框架 
CakePHP 2.10.4 发布,PHP 开发框架 
CakePHP 3.5.4 发布,PHP 开发框架 
CakePHP 3.5.0 发布,PHP 开发框架 
CakePHP 3.4.13 发布,PHP 开发框架
CakePHP 3.5.0 rc2 发布,PHP 开发框架
CakePHP 3.4.12 发布,PHP 开发框架
CakePHP 3.5.0 发布,PHP 开发框架
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务