2009年2月10日星期二

Re: [fw-mvc] Subform Again....

ok, now return the subform array with empty field but use populate work...

for ($a=0;$a<$form->getValue('n_camp');$a++){


$form->addSubForm(new Subform,$a);
$sub=$form->getSubForm($a);
$d=new Db();
$sub->populate($_POST);
$d->insert($sub->getValues());
}

where wrong?

Paweł Chuchmała wrote:
>
> On Mon, Feb 9, 2009 at 11:47, angelbit <angelbit88@gmail.com> wrote:
>>
>> hi to all
>>
>> $sub= $form->addSubForm(new subformclass,'subform_1');
>>
>> print_r($sub->getValues());
>>
>> have adding the subform with ajax and re-add when call submit action,now
>> when use getvalues method on subform objet don't retrieve only the
>> subform
>> fields but all.
>
> $sub isn't subform object. addSubForm returns $this.
>
> regards,pch
>
> --
> Paweł Chuchmała
> pawel.chuchmala at gmail dot com
>
>

--
View this message in context: http://www.nabble.com/Subform-Again....-tp21910504p21929780.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: