hi.

set member "$useTable" if your table name is different to your model name.


class User extends AppModel
{
  var $useTable = 'user';

  ...

}


is this what you want to know?

cheers.


> Can I have a table name that is singular and how should I implement it
> in model?
> Everytime when I run it, it asked for a table name 'models'.
>
> regards,
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to