CakePHP question: How can i upgrade a cakephp project from cakephp-1.3.10 to cakephp-1.3.11?

旧时模样 提交于 2019-12-12 01:27:21

问题


I have developed a project with cakephp-1.3.10 .

Now I want to upgrade it to cakephp-1.3.11.

What's the easiest process to upgrade from cakephp-1.3.10 to cakephp-1.3.11 ?


回答1:


download the cake zip, unpack, delete the app folder, put your app folder in.




回答2:


I'm sure you can't use composer! And there's a high cost in upgrading by a large jump between versions, meaning that you will end up with a lot of deprecated code.

I would go like:

  1. complete backup
  2. upload your app to a Github repository
  3. tag your code
  4. create a new branch
  5. upload your new code
  6. debug
  7. merge branch



回答3:


since you were just upgrading from 1.3.10 to 1.3.11 the simplest way would have been to download latest cakephp and then simply copy lib/ folder from the downloaded folder and replacing it with your existing cakephp/lib/ folder. I would prefer to download latest version from cakephp's official website https://cakephp.org/

Note- If you have to upgrade from 1.x to 3.x then you have to move from 1.x to 2.x and then 2.x to 3.x, direct migration from 1.x to 3.x is not possible



来源:https://stackoverflow.com/questions/7342786/cakephp-question-how-can-i-upgrade-a-cakephp-project-from-cakephp-1-3-10-to-cak

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!