(on Friday, 27 February 2009, 04:53 AM -0800):
> I have a zend_dojo_form that I want to use on its own in some cases. In
> other cases I want it to be a part of another form. I can't use ini to
> define it as I do some db lookups to prepopulate certain values.
>
> The problem I have is that when I try to use it as a subform I get the extra
> form tags & end up with a nasty, nested form.
>
> Has anyone done this?
Hey, Rob!
You need to remove the "form" decorator when you attach it as a subform
to other forms:
$dojoForm->removeDecorator('form');
$form->addSubForm($dojoForm);
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论