CakePHP v3.3.0發布,一個Web 快速開發框架

jopen 8年前發布 | 12K 次閱讀 CakePHP PHP web

CakePHP是一個運用了諸如ActiveRecord、Association Data Mapping、Front Controller和MVC等著名設計模式的快速開發框架。該項目主要目標是提供一個可以讓各種層次的PHP開發人員快速地開發出健壯的Web應用,而 又不失靈活性。主要特性:

  • 基于MVC架構
  • 視圖支持Ajax
  • 內置校驗框架
  • 提供應用程序的基礎模塊和CRUD 代碼自動生成功能
  • 提供處理session,request,security的組件
  • 靈活的視圖緩存功能
  • 面向對象
  • 無需配置:只要安裝好數據庫
  • 兼容PHP4和PHP5。

更新日志

棄用

  • 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
  • Cake\Http\Client\Response 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.
  • Cake\Utility\Crypto\Mcrypt engine has been deprecated as the mcrypt extension is deprecated in PHP 7.1. Use the openssl driver instead.

新功能

  • 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.
  • Cake\Network\Http\Client has been moved to Cake\Http\Client. 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.

下載

 

本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/5c6919f3

 

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!