<table>
  <thead>
    <tr>
      <?php foreach ($viewDatas['fields'] as $field): ?>
        <th><?= lang("{$viewDatas['class_path']}.label.{$field}") ?></th>
      <?php endforeach ?>
    </tr>
  </thead>
  <tbody>
    <?php $cnt = 0 ?>
    <?php foreach ($viewDatas['entitys'] as $entity): ?>
      <tr>
        <?php foreach ($viewDatas['fields'] as $field): ?>
          <td><?= $entity->$field ?></td>
        <?php endforeach ?>
      </tr>
      <?php $cnt++ ?>
    <?php endforeach ?>
  </tbody>
</table>