Cphalcon 3.1.0 正式版发布了,Cphalcon 是一个开源的 Web 框架,作为 PHP 语言 C 扩展,它提供了更高的性能与更低的资源消耗。
本次更新内容如下:
Added
Phalcon\Validation\Validator\Callback,Phalcon\Validation::getDataAdded the ability to truncate database tables
Added
Phalcon\Mvc\Model\Binder, class used for binding models to parameters in dispatcher, micro, addedPhalcon\Dispatcher::getBoundModelsandPhalcon\Mvc\Micro::getBoundModelsto getting bound models, addedPhalcon\Mvc\Micro\Collection\LazyLoader::callMethodAdded afterBinding event to
Phalcon\DispatcherandPhalcon\Mvc\Micro, addedPhalcon\Mvc\Micro::afterBindingAdded the ability to set custom Resultset class returned by find() #12166
Added the ability to clear appended and prepended title elements (Phalcon\Tag::appendTitle, Phalcon\Tag::prependTitle). Now you can use array to add multiple titles. For more details check #12238.
Added the ability to specify what empty means in the 'allowEmpty' option of the validators. Now it accepts as well an array specifying what's empty, for example ['', false]
Added the ability to use
Phalcon\ValidationwithPhalcon\Mvc\Collection, deprecatedPhalcon\Mvc\Model\ValidatorclassesAdded the value of the object intanceof Interface to
Phalcon\Acl\Adapter\MemoryAdded the ability to get original values from
Phalcon\Mvc\Model\Binder, addedPhalcon\Mvc\Micro::getModelBinder,Phalcon\Dispatcher::getModelBinderAdded
prependparameter toPhalcon\Loader::registerto specify autoloader's loading order to top mostFixes internal cache saving in
Phalcon\Mvc\Model\Binderwhen no cache backend is usedFixed
Phalcon\Session\Bag::removeto initialize the bag before removing a value #12647Fixed
Phalcon\Mvc\Model::getChangedFieldsto correct detect changes from NULL to Zero #12628Fixed
Phalcon\Mvc\Modelto create/refresh snapshot after create/update/refresh operation #11007, #11818, #11424Fixed
Phalcon\Mvc\Model::validateto correctly set code message #12645Fixed
Phalcon\Mvc\Modelto correctly add error when try to save empty string value to not null and not default column #12688Fixed
Phalcon\Validation\Validator\Uniquenesscollection persistent conditionFixed
Phalcon\Loader::autoLoadto prevent PHP warning #12684Fixed
Phalcon\Mvc\Model\Query::_executeSelectto correctly get the column map #12715Fixed params view scope for PHP 5 #12648
下载地址
引用来自“Xiphin”的评论
这团队比较稳,不紧不慢,就是不支持PHP7.1,继续优化