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

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 ?

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

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:
complete backup
upload your app to a Github repository
tag your code
create a new branch
upload your new code
debug
merge branch

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

Related

How to remove published package from the qooxdoo repository?

I've published a package to qooxdoo, but found that I want remove this.
What is the command to remove a package from the qooxdoo repository?
I was advised by the core team to add "(deprecated)" to the About section of the Github project that i wanted removed from the package system. See here for an example: https://github.com/sqville/sqv-qxthemes
Adding this successfully removed this project from qooxdoo.org's package browser site

ugprade cakephp 3 to latest version

i have cakephp3.3 windows and i need to upgrade to cakephp3.6. Checking the docs i see there is no tool available. Checking the migration guides i am not seeing any issues with my code in cake3.3 with newer versions.
Do i simply create a new instance of cake3.6 and create models,controllers again using bake and then copy over code to see if this works? what is an efficient way
The docs in cakephp are not clear on this process. do i upgrade to 3.4 then 3.5,3.6?
https://book.cakephp.org/3.0/en/appendices/3-x-migration-guide.html
Use composer.
For Windows, you can download it from here. After installation, locate composer.json file in your CakePHP application directory, and look for "require" part, and update line regarding CakePHP as follows:
"require": {
"php": ">=5.6",
"cakephp/cakephp": "3.6.*",
....
}
Then, in command line, navigate to your CakePHP installation directory and fire composer update. After a while you should have your CakePHP upgraded.
More info about updating to new version can be found in docs:
Keeping up to date with latest CakePHP changes
Another solution was given which was to install a new instance of cakephp and just copy over scr folder and other relevant code in the new instance. This is more work but the conversion from 3.3 to 3.6 isnt very clean with a composer update

IBM Worklight - How do I patch Cordova?

While adding support for the Windows 8 environment, I've hit a Cordova bug. The folders are being reported as files when I get the directory listing: https://issues.apache.org/jira/browse/CB-5774
I want to apply the patch in my project as I understand you cannot upgrade the Cordova version in a Worklight project.
I am using Worklight 6.1.0.
I figured out a way to patch (JavaScript patch).. I am sure this is not a permnant solution - but a adhoc one till the patched Cordova is available with a new version of Worklight.
In my case the bug was in FileProxy.js. I created a directory structure to mirror the location of the problem file and added the patched file there.(www\worklight\plugins\org.apache.cordova.file\src\windows8\FileProxy.js).
At build time the cordova files are copied first and then www contents are copied after... so my patched file overwrote the one with the bug.
I'm sure this is not a supported way by Worklight - but I am no longer blocked.
It is currently not possible to replace or patch the Cordova version that is being used in Worklight. In Worklight v6.1.0, Cordova v3.1 is used.
If you are an IBM customer or business partner you can open a PMR to see if an iFix can be produced that will contain a patched version of Cordova 3.1.

How do I download CakePHP 1.3 from the CakePHP GitHub repository?

I am working on a legacy CakePHP 1.3 project and would like to follow the standard blog tutorial.
The tutorial says this is possible in 2 ways:
a) To download via http://github.com/cakephp/cakephp/downloads, however when visiting this link there are no packages to download anything.
b) It suggests that it is possible to download via the command line using git clone git://github.com/cakephp/cakephp.git, however this appears to download the latest version (at this stage 2.0+)
I have located what appears to be CakePHP 1.3 at this address https://github.com/cakephp/cakephp/tree/1.3, but I am not sure how to download these all in one go with git options.
You can either download one of the tagged zips, or simply checkout the 1.3 branch after cloning the repository from Git bash:
git clone http://github.com/cakephp/cakephp
git checkout 1.3
That way you get the 1.3 branch and can use those files. If you ever want to get back to the master branch, simply checkout that branch:
git checkout master
Last CakePHP 1.3.21 zip file:
https://codeload.github.com/cakephp/cakephp/zip/1.3.21
All releases are tagged and you can download them from https://github.com/cakephp/cakephp/tags

upgrade from 2.0.5 to 2.2.5

I have old app. It based on CakePHP 2.0.5.
I want to upgrade it to current latest version, 2.2.5.
Is it enough to replace new lib folder with the old one? or application folder needs to be changed, too.
(checking changelogs for about 17 versions takes time a lot!!!)
I think I should read Cookbook:
first:
http://book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html
then:
http://book.cakephp.org/2.0/en/appendices/2-2-migration-guide.html

Resources