Re: Naming Conventions
Can you post the FavoritePost model that Bake generated ?
On 13/07/12 00:02, Greg Skerman wrote:
The fact that it's referring to the favorites table and not favorite_posts leads me to believe there's something screwy in your schema.
Can you post your table struct?--
On Friday, July 13, 2012, Advantage+ wrote:
--Yes that is correct but it will not bake the view. I get error saying Favorite Table cannot be found in the console.
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Greg Skerman
Sent: Thursday, July 12, 2012 3:12 AM
To: cake-php@googlegroups.com
Subject: Re: Naming Conventions
PostsController
If you have a table called favorite_posts, cake's going to want to bake a "FavoritePost" model, and a "FavoritePostsController" controller.
On Thu, Jul 12, 2012 at 11:32 AM, Advantage+ <movepixels@gmail.com> wrote:
I have Post model / PostController
In the db I have favorite_posts but when I try to bake I get Favorite Table not found. There is no favorite table so something is wrong with my table name but what is it?
Where am I going wrong here?
Thanks all.
--
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
--
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
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
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home