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?

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