Home » , » Beta Version of CakePHP 2.5.5 and 2.6.0 Released

Beta Version of CakePHP 2.5.5 and 2.6.0 Released

jaki watson | 21:20 | 0 comments

Cakephp Development

An open source web application framework, CakePHP framework releases its Beta version CakePHP 2.5.5 and 2.6.0. The CakePHP core team publicizes the availability of 2.5.5 for the 2.5 release series while 2.6.0-beta for the upcoming 2.6.0 release.

Have a glance at the changes you can find in 2.5.5:
  • Fixed a situation where Hash::remove() would remove data incorrectly.

  • Hash::get() and Hash::insert() handle 0 as the first path element.

  • Hash::merge() and Hash::expand()are now much faster.

  • UUID columns are now reflected properly through postgres.

  • Console applications will not output colours if there is no TTY.

  • Files are not overwritten by Folder::copy() when the SKIP flag is used.

  • Enhanced API documentation.

  • The email pattern can be reset by CakeEmail::reset().

Latest features in 2.6

Just like the other 2.x releases, 2.6.0 will be supportable with last versions of CakePHP 2.x, and also has many improvements and latest enhancements. The latest version of 2.6.0 comes with a collection of features like:
  • ConsoleOptionParser::removeSubcommand() was added.

  • Model::save() had the atomic option back-ported from 3.0.

  • CakeRequest::param() can now read values using :ref: hash-path-syntax like data() .

  • CakeRequest:setInput() was added.

  • HttpSocket::head() was added.

  • When using AclBehavior, The model's parentNode() method now gets the type (Aro, Aco) passed as first argument: $model->parentNode($type) .

  • Schema migrations with MySQL now support an after key when adding a column. This key allows you to specify which column the new one should be added after.

  • CakeTime::timeAgoInWords() now supports a relativeStringFuture option. This option is a printf compatible string for outputting future relative time date formats. This helps make localizing formatted times easier.

  • Hash::get() now raises an exception when the path argument is invalid.

  • Hash::nest() now raises an exception when the nesting operation results in no data.

  • New i18n functions have been added. The new functions allow you to include message context which allows you disambiguate possibly confusing message strings. For example 'read' can mean multiple things in English depending on the context. The new __x , __xn , __dx , __dxn , __dxc , __dxcn , and __xc functions provide access to the new features.

  • stackTrace() has been added as a convenience wrapper function for Debugger::trace() . It directly echos just as debug() does. But only if debug level is on.

  • Shell::overwrite() has been added to allow generating progress bars or to avoid outputting too many lines by replacing text that has been already outputted to the screen.

  • You can now use the protocol option to override the specific protocol to use when making a request.

  • CakeTime::timeAgoInWords() now supports strftime() compatible absolute date formats. This helps make localizing formatted times easier.

  • HtmlHelper::css() had the once option added. It works the same as the once option for HtmlHelper::script() . The default value is false to maintain backwards compatibility.

  • The maxlength attribute will now also be applied to textareas, when the corresponding DB field is of type varchar, as per HTML specs.

After this update, you will see the long standing issue in the Model class has been fixed. There is a flag to restore the behavior as it may be created as API changes.

A consistent format for afterFind() is used by Model::afterFind(). Users will find result located under $data[0]['ModelName'] when $primary is false. Moreover, one can set the useConsistentAfterFind property on their models to restore the original behavior.

Apart from the new features, some older features are deprecated and will be removed in CakePHP 3.0.0 such as

  • The $confirmMessage argument of FormHelper::postLink() has been deprecated. You should instead use key confirm in $options to specify the message.

  • The $confirmMessage argument of HtmlHelper::link() has been deprecated. You should instead use key confirm in $options to specify the message.

  • Validation::ssn has been deprecated and may be provided as standalone/plugin solution.

  • Validation::between has been deprecated, you should use Validation::lengthBetween instead.

This latest version can be updated within 1 month, if it doesn’t have any major issues reported. Moreover, if you are looking for professional Cakephp developer for your Cakephp Development project, then contact us soon.
Share this article :


Post a Comment

Design by: