Upgrading CakePHP 2.10 to 3.5



I have a CakePHP 2.10 project, and was trying to upgrade it to the CakePHP 3.5 (latest).

I’m working with CakePHP for the first time so I followed the official guidelines to make it possible:




At the end of the procedures my app folders were empty and the Controllers, Models, Views I had went inside a new folder named ‘src’.

When I refreshed my app homepage, I got :

Fatal error: Class ‘AppHelper’ not found in C:…\cakephp\app\Vendor\cakephp\cakephp\lib\Cake\View\Helper\HtmlHelper.php on line 33

The file resumes to this:

App::uses(‘AppHelper’, ‘View/Helper’);

class HtmlHelper extends AppHelper {…}

So my questions are:

  • is it normal for the upgrade to empty my app folders, and unite them in the ‘src’ folder?
  • what happend to the location and namespaces upgrade? Wasn’t it supposed to update this kind of headers?

Thanks in advance to anyone who can help me with this questions.

Best regards,
Gonçalo Carvalho


No its not Normal Actually there is Directory Structure difference between 2.x and 3.x you have to manually shift some things
i have previously shifted from Cakephp 2.5 to 2.9 it was not performing properly then i manually update files in Folders