Re: Name Convention Problem in creating model please help me out
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 <crazycake...@gmail.com> 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.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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com 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 cake-php@googlegroups.com
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?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home