Saturday, March 23, 2013

Re: Solution for CakePHP newbies who are stuck with messages like - Error: PostController could not be found

CakePHP requires that you understand PHP. The fact that you didn't know that is unsettling.

On Saturday, November 24, 2012 12:53:19 PM UTC-8, Mike Pritchard wrote:
I struggled with the problems described in messages from new CakePHP users.  The Cake install looked OK, but when I went through the Blog Adding a Layer tutorial I'd get these kinds of messages.

Error: PostController could not be found
Error: Create the class PostController below in file: app/Controller/PostsController.php

After reading lots of threads, going through the tutorial again and again, reinstalling, checking mod_rewrite, etc., I finally figured it out.  So hopefully this will help others.

The Cakewalk tutorials omit to mention that the php files need to start with <?php, and the snippets don't include the beginning. I assumed that this was correct - part of the Cakewalk process. And also discovered that the php files that start with <?php don't finish with ?>.

When I added the <?php to the beginning of relevant files in the tutorial, everything started working!  I've been able to finish the tutorial and even extend it a little.

Onward and upward.
MIke

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: