Today I’m migrating one of our webapplications from Cakephp 1.3 to Cakephp 2.0.5.
The upgrade itself was performed by calling the shell command script:
cake upgrade all
But one thing I’ve been unable to find googling around was the answer to the error
Controller could not be found
Luckily I printed out the migration guide from http://book.cakephp.org , where this section of Routing changes pointed out that I’d had to add the following statement:
require CAKE . 'Config' . DS . 'routes.php';
This solves the problem of “Controller could not be found”