Table: stores, Model: Store
Table: test_stores, Model: TestStore

On May 20, 6:52 am, John Andersen <[email protected]> wrote:
> The naming conventions states that your models should be singular,
> your tables plural. So you model for the stores table must be Store -
> not Stores!
>
> Your table test_stores will be supported by a model named TestStore
> (singular and camelcased).
> Enjoy,
>    John
>
> On May 20, 4:03 pm, Narendra Padala <[email protected]> wrote:
>
>
>
> > Hi...All i am new to cakephp, i have problem in creating model please
> > help me out...!
>
> > My table names like this
>
> > Table one : stores
> > Table two : test_stores
>
> > For one i create like this.
>
> > File name: store.php
> > --------------------
> > <?php
> >     class Stores extends AppModel {
> >         var $name = 'Store';
> >     }
> > ?>
> > For second table how can i create model help me out.?
>
> > For "test_stores" this how can i create model ?
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups 
> > "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to