<dt>Id</dt> <dd> <?php echo $car['Car']['id']?></dd> <dt>Name</dt> <dd> <?php echo $car['Car']['name']?></dd> <dt>Model</dt> <dd> <?php echo $car['Car']['model']?></dd>
On Jul 29, 11:51 pm, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > And your view code? > > On 7/29/07, rtanz <[EMAIL PROTECTED]> wrote: > > > > > > > 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 > > -- > Pablo Viojo > [EMAIL PROTECTED]://pviojo.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---