Thursday, May 20, 2010

How create model in cakephp [Naming conventions Problem]

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 ?



Thanks in Advance.

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


Real Estate