Thursday, May 15, 2014

Re: Upgrading from cakePHP version 1.3 to 2.5

Follow the documentation (http://book.cakephp.org/2.0/en/appendices.html), and perhaps use dereuromarks upgrade plugin (https://github.com/dereuromark/upgrade).

Since you're going through all the releases from 1.3 to 2.5, make sure to read the all the guides first, before changing any code.  Just so you know to move away from things like Set (use Hash instead), etc.

Also remember to get fresh copies of things like Config/core.php, Config/bootstrap.php, webroot/index.php and webroot/test.php, and update with any settings from your old release. Because these items are application level, rather than core, they often get missed when automatic updates get applied.

I would also consider installing CakePHP via composer, in preparation for CakePHP 3.0.  Plus is just makes dependency management and upgrades for PHP vendor code so much easier.

I just did the 1.3 to 2.4 upgrade (for the second time) a couple of months ago.  The automation tools make it really easy, but you'll need to manually do stuff like authentication, since it has received a major change between releases (but for the better).

Regards
Reuben Helms

On Friday, 16 May 2014 14:21:08 UTC+10, earth wrote:
I have a project in cakePHP version 1.3 and i want it to upgrade it to cakePHP version 2.5
Please let me know the best way to do this upgrade.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: