We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon 2 Release Candidate

The blog says Phalcon 2 Release Candidate includes new features and improvements. Could we get some intel, a changelist about these, please?

  • Full rewrite of most components in Zephir
  • Added Phalcon\Mvc\Micro::error for better handling of exceptions
  • Phalcon\Forms\Form::label does not share attributes with the ones that belong to the element
  • Added parameter 'params' to set default conditions when retrieving related records
  • Added filters "int!" and "float!" that cast values to the respective type
  • Filter "alphanum" now uses a regular expression instead of internal functions for better behaviour in 64bits
  • Added 'allowEmpty' option in Phalcon\Validation validators to skip validation if the value is empty
  • Added Phalcon\Validation::setDefaultMessages to set default values in validators
  • Added Phalcon\Validation\Validator\Numericality
  • Replaced build/install by LTO (Link Time Optimization) in ext/
  • Added events in Phalcon\Di
    • beforeServiceResolve
    • afterServiceResolve