I am working with forms on Ajax.
I have the following structure:
MainForm
WebSitesSubForm - websites
WebsiteSubForms - websites[1], websites[2], ......
I have one problem i don't know is a bug or not, so i am posting here
rather than to Issue Tracker.
If i am creating the entire form, but i do just a
MainForm->getSubForm('websites')->getSubForm('1')->render()
the elements from the form are rendered with names like this
1['WebsiteSubForm-Element']
not like this:
websites['1']['WebsiteSubForm-Element']
I am wondering why the rendering doesn't actually shows proper elements
name.
Note: this problem can be easily resolved by actually just instantiating
WebsiteSubForm and using setElementsBelongTo as
setElementsBelongTo('website[1]')... But anyway, i guess in the first
case the elements should be rendered with full name...
--
Best regards,
Cristian Bichis
www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com
没有评论:
发表评论