Use $this->Trace->save() instead.

On Jul 7, 10:31 pm, M <[EMAIL PROTECTED]> wrote:
> hello,
>
>  I have this call in the model shop.php:
>
> var $uses = array ('User', 'Item', 'Trace' );
> ...
> $trace = new Trace();
>                 $trace->save( $userdata['User']['id'], 'user bought a ' .
> $itemdata['Item']['name'] .
>                         ' for ' . $price . ' credits from shop ' . 
> $shopdata['Shop']
> ['id'] );
>
> but the site display the error
>
> Fatal error: Class 'Trace' not found in shop.php ...
>
> I added to the array $uses the class Trace and created the model
> trace.php too, but it does not work.
>
> What am I doing wrong?
>
> Thanks,
>
> -- M


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to