<table>
  <thead>
    <tr>
      <?php foreach ($viewDatas['formFields'] as $field => $label): ?><th nowrap><?= $label ?></th><?php endforeach ?>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($viewDatas['entities'] as $entity): ?>
      <?php $viewDatas['entity'] = $entity ?>
      <tr>
        <?php foreach ($viewDatas['formFields'] as $field => $label): ?>
          <td nowrap><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td>
        <?php endforeach ?>
      </tr>
    <?php endforeach ?>
  </tbody>
</table>