hi i am trying to perform some sql querying in a controller but keep
getting this error

Notice: Undefined index: Car in W:\www\cake\app\views\cars\index.thtml
on line 13

My controller code is:

        function index() {
                $this->Car->recursive = 0;
                $this->set('cars', $this->Car->findByName('Mazda'));
}

what is the problem? thanks


--~--~---------~--~----~------------~-------~--~----~
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