Home » , » CakePHP Release 2.6.0 Update

CakePHP Release 2.6.0 Update

jaki watson | 03:01 | 0 comments
Cakephp Development Company
Good news for CakePHP users as the team is proud to announce the immediate available availability of CakePHP 2.6.0 with some changes to 2.6.0 since the RC1 release. CakePHP is one of the best open source web application frameworks, follow Model-View-Controller approach. This framework is written in PHP and can model after the concepts of Ruby on Rails.

CakePHP uses code generation and scaffolding features that help to create prototypes. When using this framework, you just have to setup your database. Additionally, you don’t find any complicated XML or YAML files. CakePHP helps to create web application simple and fast. If you have already created application then checks out CakePHP 2.6.0 version to know more information.
  • The RLIKE operator is now supported by the MySQL driver.

  • API documentation improvements

  • PaginatorHelper now merges options used for active links with options used for disabled links.

  • HtmlHelper::script() and HtmlHelper::css() no longer share a single asset list for the once option.

  • Postgres driver supports sslmode.

  • AuthComponent now fires the Auth.afterIdentify event after users are logged in.

  • The test suite can now use PHPUnit's phar file.

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

  • 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 strftime() compatible absolute date formats. This helps make localizing formatted times easier.

  • 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.

  • 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.

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

  • 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.

  • Model::afterFind() now always uses a consistent format for afterFind(). When $primary is false, the results will always be located under $data[0]['ModelName']. You can set the $this->useConsistentAfterFind = false to restore the original behaviour if your application relies on the old behavior.

  • AuthComponent now triggers the Auth.afterIdentify event after successfully identifying a user.

  • Configure value I18n.preferApp can now be used to control the order of translations. If set to true it will prefer the app translations over any plugins' ones.

  • 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.

  • ConsoleOptionParser::removeSubcommand() was added.

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

  • 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.

  • 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.

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

  • CakeRequest:setInput() was added.

  • HttpSocket::head() was added.

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

Deprecations

A few features have been deprecated along with features and will be removed in CakePHP 3.0.0.
  • The $confirmMessage argument of FormHelper::postLink() 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.

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

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

The Future of 2.x

The development branch for 2.7.0 has been created along with 2.6.0 released. The branch will be release about 5-6 months and another 2.x API compatible release very soon. Moreover, team doesn’t have any large improvement planned for 2.7. However, some efforts to backport are useful features from 3.0 to help you migrate more easily.

If you want to update your blog or want to create CakePHP website then contact Perception System, a leading Cakephp Development Company. You can also choose our developer with ‘Cakephp Developer for hire’ option.

Source Link: CakePHP2.6.0

More Information Regarding cakephp Portfolio Click here.
Share this article :

0 comments:

Post a Comment

 
Design by: