CakePHP – Missing Controller

Missing Controller

Error: PostsController could not be found.

Error: Create the class PostsController below in file: app/Controller/PostsController.php

Simple problem with a simpler solution. I was following the cookbook guide to the letter but CakePHP wouldn’t see my controller, even though I confirmed it was there and the file permissions were correct.

Turns out I forgot to add the opening and closing “<?php ?>” tags to the model and controller pages! The tutorial in the cookbook does not make it clear.

Leave a Reply