Unless I'm off my mark it should be
<td><?php echo $companiesWorker['Company ']['name']; ?></td>
instead of
<td><?php echo $companiesWorker['Companies ']['name']; ?></td>
On Thu, 2008-01-03 at 09:23 -0800, mcphisto wrote:
> Well, that's my problem.
> I've a table Companies, a table Workers and a table Companies_Workers.
> in the index.thtml I obtain the Worker_id and the Company_id. The
> problem is that i need the names and not the ID.
> It seems to be simple, but I'm going grazy.
>
> in the controller of companies_workers I've
> $this->set('companies', $this->CompaniesWorker->Company-
> >generateList());
>
> in the index.thtml I wrote
> <td><?php echo $companiesWorker['Companies ']['name']; ?></td>
>
> but i get
>
> Notice: Undefined index: name in [root]\www\app\views\companies_workers
> \index.thtml on line 14.
>
> Why? Am I doing something wrong?
>
> >
Thanks,
Ronald Chaplin
Owner - T73 Software and Designs
________________________________________________________________________
http://t73-softdesign.com/
We'll Make All Of Your Wildest
e-Commerce Dreams Come True!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---