Hello,
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:
https://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html
and
https://book.cakephp.org/3.0/en/upgrade-tool.html
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