Why would fieldsets in the form component represent HTML fieldsets? HTML fieldsets have no meaning at all IMO... They could be replaced by <div/> if it wasn't a question of semantics.
A Form does not necessarily represent an HTML form. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 13 December 2012 15:51, Ralf Eggert <[email protected]> wrote: > Hi Matthew, > > >> I wonder, why there is no formFieldset() view helper? > > > > Simple oversight, and nobody's bugged us for one before now. :) > > Just another question for understanding. When I use fieldsets with a > form these fields are always grouped together when echoed with a view > helper: > > <input type="text" name="data[pizza_name]" value=""> > > I am used to use fieldsets to group elements visually and not logically. > When a form is sent, the data is like this: > > array(1) { > ["data"] => array(1) { > ["pizza_name"] => string(9) "Just a test" > } > } > > When elements are grouped visually for a fieldsets I want to data to be > sent like this: > > array(1) { > ["pizza_name"] => string(9) "Just a test" > } > > So to me the fieldsets of Zend\Form are used diffently than the HTML > fieldsets. > > Why is this done like this? > > Regards, > > Ralf > > -- > List: [email protected] > Info: http://framework.zend.com/archives > Unsubscribe: [email protected] > > >
