Hi there,

 

I'm working on a collection of Form Decorators and ViewHelper's which should
enable Ext.JS powered Forms, TabPanels, etc. However, 1 point I've come
across is the naming of elements in subforms.  Let's say I have a FormPanel
(basicly a form tag) that contains a TabPanel with 2 tabs (the SubForms,
named 'login_tab' and 'forgot_password'), which in turn contain the
elements. The naming of the elements in the SubForm to validate it
server-side is quite ambiguous. For example, the Form::isValid() function
checks the $_POST["login_tab"]["element_name"], but if $_POST["login_tab"]
does not exist, it will check $_POST["element_name"] anyway.

 

My question: should I name my elements like <input
name="login_tab[element_name]"> or will <input name="element_name"> suffice?

 

Greetings,

 

Menno Luiten

 

PS: Since ZF has a Dojo library, is it any use to submit a proposal if my
implementation turns out to be useful? Or will it be rejected due to the
previously mentioned Dojo engagement? 

Reply via email to