- Code: Alles auswählen
<table>
<?php echo $this->Form->create('Item');?>
<tr>
<th>Typenbezeichnung</th>
<th>Seriennummer</th>
</tr>
<?php
for ($i = 0; $i < $_POST['count']; $i++){
?>
<tr>
<td><?php echo $this->Form->input('typ', array('label' => false, 'div' => array('class' => 'small_width'))); ?>
</td>
<td><?php
echo $this->Form->input('sn', array('label' => false, 'div' => array('class' => 'small_width'))); ?>
</td>
<?php
}?>
</tr>
<?php echo $this->Form->end('Items abspeichern');?>
</table>
nur leider übergibt er mir immer nur ein Item. gibt es eine Funktion die mehrere instanzen in das "data"-Array schreibt bzw. gibt es Funktionen in dem Helper??? oder komm ich nicht drumherum alles komplett händisch selber zu schreiben???