On Jan 3, 12:23 pm, mcphisto <[EMAIL PROTECTED]> wrote:
>
> 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>It seems to me that your list should be in $companies (although I'm new to this). Then do the following in the view: <?php foreach($companes as $id => $name): ?> <td><?php echo $name; ?></td> <?php endforeach; ?> But, given it's a table, that's probably not quite the markup you want (I'm guessing new rows would be nice). brian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
