Controller could not be found – Cake2 migration

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 , 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”

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Verplichte velden zijn gemarkeerd met *

De volgende HTML-tags en -attributen zijn toegestaan: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>