Ok,i tried from the beginning and i have no more that error.I don't know 
what happened.Thank you.

Il giorno mercoledì 21 novembre 2012 17:43:43 UTC+1, and ha scritto:
>
> Hi all,
> I have this error:
> *Error: * Database table *models* for model *model* was not found.
>
> I have a product model
> <?php
>
> class Product extends AppModel{
>     var $name='Product';
>     var $actsAs=array('Acl'=>array('type'=>'controlled'));
>     var $belongsTo=array('Dealer'=>array('className'=>'Dealer',
>                 'foreignKey'=>'dealer_id'));
>
>     function parentNode(){
>         if( !$this->id && empty($this->data)){
>             return null;
>         }
>         $data=$this->data;
>         if( !$data['Product']['dealer_id'] ){
>             return null;
>         }
>         else{
>             return 
> array('model'=>'Dealer','foreignKey'=>$data['Product']['dealer_id']);
>         }
>     }
> }
> ?>
> And a db table named products.How can I fix it?
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to