[html-formfu] caveat: yml config is hash not array

Mario Minati mario.minati at googlemail.com
Tue Oct 16 19:11:34 GMT 2007


On Sunday 14 October 2007 23:28:59 Ruben Fonseca wrote:
> On 2007/10/14, at 14:06, Mario Minati wrote:
> > Hi @all,
> >
> > just to document this behaviour. (I'm not sure if this should be
> > changed.)
> >
> > The yml config for a form is interpreted as a hash, so no order is
> > preserved
> > and no double use of the same key.
> >
> > I tried to do:
> > load_config_file
> >   - defaults
> > elements
> >   - ...
> > load_config_file
> >   - some_default_elements
> >
> > That does *not* work as the second load_config_file overwrites the
> > first one
> > and the elements defined in 'some_default_elements' are displayed
> > before the
> > elements defined in the 'elements' section as load_config_file is
> > interpreded
> > before elements in the 'populate' function in ObjectUtil.
>
> I had exactly the same behaviour and solved my problem using your
> method. Yes I think this should be documented in the FAQ or Cookbook.

I created a caveat section in HTML::FormFu

Greets,
Mario



More information about the HTML-FormFu mailing list