Controller::getView() has been removed. In its place viewBuilder() has been added. This method and new builder class resolves the issues that were caused by creating view instances eagerly.
Mailer instances now set their template names based on the action that was invoked.
View::viewPath() is now View::templatePath().
Auth.redirect is no longer to referrer URL when accessing login action. Instead it is only set to a protected URL when trying to access it without authentication, before redirecting to login action.
新特性
Validation::latitude(), and Validation::longitude() were added.
Validation::ascii(), Validation::utf8(), and Validation::isInteger() were added.
Cache::add() was ported from 2.x. This method allows you to atomically add data to a cache backend if the key did not already exist.
Time::listTimezones() now supports options to display timezone abbreviations.
Hash::get() now supports objects implementing ArrayAccess.
Hash::sort() supports case-insensitive sorting through a new ignoreCase option.
CakePHP 3.1.0-RC1 发布,PHP 开发框架
CakePHP 3.1.0-RC1 发布,此版本相比 beta 版本改进如下:
Controller::getView()
has been removed. In its placeviewBuilder()
has been added. This method and new builder class resolves the issues that were caused by creating view instances eagerly.Mailer instances now set their template names based on the action that was invoked.
View::viewPath()
is nowView::templatePath()
.Auth.redirect
is no longer to referrer URL when accessing login action. Instead it is only set to a protected URL when trying to access it without authentication, before redirecting to login action.新特性
Validation::latitude()
, andValidation::longitude()
were added.Validation::ascii()
,Validation::utf8()
, andValidation::isInteger()
were added.Cache::add()
was ported from 2.x. This method allows you to atomically add data to a cache backend if the key did not already exist.Time::listTimezones()
now supports options to display timezone abbreviations.Hash::get()
now supports objects implementing ArrayAccess.Hash::sort()
supports case-insensitive sorting through a newignoreCase
option.下载:cakephp-3-1-0-RC1.zip
CakePHP 是一个运用了诸如ActiveRecord、Association Data Mapping、Front Controller和MVC等著名设计模式的快速开发框架。该项目主要目标是提供一个可以让各种层次的PHP开发人员快速地开发出健壮的Web应用,而 又不失灵活性。主要特性:
基于MVC架构
视图支持Ajax
内置校验框架
提供应用程序的基础模块和CRUD 代码自动生成功能
提供处理session,request,security的组件
灵活的视图缓存功能
面向对象
无需配置:只要安装好数据库
兼容PHP4和PHP5。