Cphalcon 3.1.0-alpha1(预览版) 发布了,这是 3.1.x 系列的首个公开 alpha 版。 更新如下: Added Phalcon\Validation\Validator\Callback, Phalcon\Validation::getData Added the ability to truncate database tables Added Phalcon\Mvc\Model\Binder, class used for binding models to parameters in dispatcher, micro, added Phalcon\Dispatcher::getBoundModels and Phalcon\Mvc\Micro::getBoundModels to getting bound models, added Phalcon\Mvc\Micro\Collection\LazyLoader::callMethod Added afterBinding event to Phalcon\Dispatcher and Phalcon\Mvc\Micro, added Phalcon\Mvc\Micro::afterBinding Added 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:rependTitle). 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\Validation with Phalcon\Mvc\Collection, deprecated Phalcon\Mvc\Model\Validator classes Fixes internal cache saving in Phalcon\Mvc\Model\Binder when no cache backend is used Added the ability to get original values from Phalcon\Mvc\Model\Binder, added Phalcon\Mvc\Micro::getModelBinder, Phalcon\Dispatcher::getModelBinder Added prepend parameter to Phalcon\Loader::register to specify autoloader's loading order to top most Fixed Phalcon\Session\Bag::remove to initialize the bag before removing a value #12647 Fixed Phalcon\Mvc\Model::getChangedFields to correct detect changes from NULL to Zero #12628 Fixed Phalcon\Mvc\Model to create/refresh snapshot after create/update/refresh operation #11007, #11818, #11424 Fixed Phalcon\Mvc\Model::validate to correctly set code message #12645 Added the value of the object intanceof Interface to Phalcon\Acl\Adapter\Memory Fixed Phalcon\Mvc\Model to correctly add error when try to save empty string value to not null and not default column #12688 Fixed Phalcon\Validation\Validator\Uniqueness collection persistent condition 下载地址 Source code (zip) Source code (tar.gz) https://phalconphp.com/zh/download/linux Cphalcon 3.1.0-alpha1,PPHP 的 C 扩展 Web 框架下载地址