Thanks allot working now learn something new everyday :D

On Feb 26, 3:21 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > And my model looks like this
>
> > category_item.php
>
> > <?php
> > class CategoryItem extends AppModel {
> >         var $name = 'CategoryItem';
> > }
> > ?>
>
> > But it throws up an error
>
> > No Database table for model CategoryItem (expected "category_items"),
> > create it first.
>
> easiest fix would be to add the table name to the model:
>
> class CategoryItem extends AppModel {
>         var $name = 'CategoryItem';
>         var $useTable = 'categories_items';
>
> }
>
> hth
>
> jon
>
> --
>
> jon bennett
> t: +44 (0) 1225 341 039 w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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