echo $this->Form->input('Model.0.name');
echo $this->Form->input('Model.1.name');
echo $this->Form->input('Model.2.name');
Em quinta-feira, 6 de junho de 2013 12h30min10s UTC-3, gloop escreveu:
>
> Hello Cake-Fans,
>
> i try to save more than 1 entry in the database.
>
> Example:
>
> *index.ctp*
Hello Cake-Fans,
i try to save more than 1 entry in the database.
Example:
*index.ctp*
echo $this->Form->create('Item');
echo $this->Form->input('0.Item.name');
echo $this->Form->input('1.Item.name');
echo $this->Form->end('save');
*Item.php*
class Item extends AppModel {
var $validate = arra