[html-formfu] DBIx-Class-HTML-FormFu nested-params

Mario Minati mario.minati at googlemail.com
Mon Nov 5 22:30:17 GMT 2007


On Monday 05 November 2007 22:30:07 Carl Franks wrote:
> On 05/11/2007, Mario Minati <mario.minati at googlemail.com> wrote:
> > On Monday 05 November 2007 17:59:19 Carl Franks wrote:
> > > I've added support for nested-params toDBIx-Class-HTML-FormFu.
> > >
> > > To use it, you must provide a 'nested_base' key:
> > >
> > > $row->fill_formfu_values( $form, { nested_base => 'foo' } );
> > >
> > > This will only look at fields/values attached to the Block element
> > > with nested_name 'foo'.
> > >
> > > I've also checked in experimental extended support for relationships,
> > > but this _will_ be changing, so probably best to just ignore that for
> > > now.
> > >
> > > If you want to run the DBIC tests, the db schema's changed, so you'll
> > > have to delete your "t/test.db" file and create another by running
> > > `sqlite3 t/test.db < t/create.sql`
> >
> > Ok,
> > that looks even better than my code.
>
> Sorry!
> didn't realise you were working on it, had you checked it in anywhere?
> I've not been keeping my eye on the DBIC folder.

Don't worry I meant what I wrote :-)

I like your approach with get_all_element and base->get_field better.

I'm just switching my app from the prefix and suffix stuff to the nested_param 
way and testing it that way. ;-)

Greets,
Mario



More information about the HTML-FormFu mailing list