CakePHP 3.0.4 發布,PHP 開發框架
CakePHP 3.0.4 發布,此版本是個維護版本,包括安全修復和 bug 修復。
安全修復
-
CsrfComponent 驗證請求失敗,導致丟失 CSRF token 和 CSRF 發送數據
-
當編組請求數據時,空條目會繞開驗證,創建 JSON 負載。RulesChecker 驗證不會被這些空條目繞開。
Bug 修復
-
Cascading deletes on associations with custom aliases should no longer fail.
-
XmlView now supports
_xmlOptions
. This matches the behavior of JsonView. -
EntityTrait::extractOriginal()
now behaves consistently withextract()
. Both methods now include all named properties, instead of just the unchanged properties. A new methodextractOriginalChanged()
can be used to extract only the original values of changed attributes. -
Query string parameters are now correctly supported in
IntegrationTestCase
. -
Collection::isEmpty()
andCake\ORM\Query::isEmpty()
was added. -
Forms can now be created without the action attribute.
-
Accessing entity data is now more efficient. Entities will cache the result of custom accessors, and invalidate the cache when properties are changed or removed.
此版本現已提供下載:cakephp-3-0-4.zip。
CakePHP是一個運用了諸如ActiveRecord、Association Data Mapping、Front Controller和MVC等著名設計模式的快速開發框架。該項目主要目標是提供一個可以讓各種層次的PHP開發人員快速地開發出健壯的Web應用,而 又不失靈活性。主要特性:
基于MVC架構
視圖支持Ajax
內置校驗框架
提供應用程序的基礎模塊和CRUD 代碼自動生成功能
提供處理session,request,security的組件
靈活的視圖緩存功能
面向對象
無需配置:只要安裝好數據庫
兼容PHP4和PHP5。