+1 to this

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:*[email protected] <javascript:_e({}, 'cvml',
    '[email protected]');> [mailto:[email protected]
    <javascript:_e({}, 'cvml', '[email protected]');>] *On
    Behalf Of *Greg Skerman
    *Sent:* Thursday, July 12, 2012 3:12 AM
    *To:* [email protected] <javascript:_e({}, 'cvml',
    '[email protected]');>
    *Subject:* Re: Naming Conventions

    Post*s*Controller

    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+ <[email protected]
    <javascript:_e({}, 'cvml', '[email protected]');>> 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
    [email protected] <javascript:_e({}, 'cvml',
    'cake-php%[email protected]');> 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
    [email protected] <javascript:_e({}, 'cvml',
    '[email protected]');> 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
    [email protected] <javascript:_e({}, 'cvml',
    'cake-php%[email protected]');> 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
[email protected] 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to