Friday, June 1, 2012

Re: Missing Controller Error



Read the Naming Convention Chapter for Cake 2.x which is diff from 1.3. Andrew Perkins Tutorial is for 1.3 However he had added a Video for changes is Cake 2.x.
Follow that. IN ur Problem , just rename ur Posts_Controller file to PostsController(remove Underscore). It will Work.
If ur using PHP 4 u shd add Line :

 {  
   var $name = "Posts"; 
otherwise it is not required a cake knows by convention that which Model u will be using by default for this Controller.   

Sounds like you're following a tutorial for CakePHP 1.3 and using CakePHP 2.x


and only then try other tuts. 

AD

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: