[html-formfu] sample JSON formatted config file

Manu Kaul manu.kaul at gmail.com
Fri Mar 20 08:36:16 GMT 2009


Thanks Carl. I am not utilizing DBIC so will have to use my own MODEL layer
using Perl DBI and Stored Procs anyway.

On Fri, Mar 20, 2009 at 8:34 AM, Carl Franks <fireartist at gmail.com> wrote:

> 2009/3/20 Manu Kaul <manu.kaul at gmail.com>:
> > Hi guys,
> > I am just about to start my first FormFu form to insert an entry into t=
he
> > DB. Was going to follow
> > --> http://www.catalystframework.org/calendar/2007/20 as a tutorial.
> > Guys I was planning to write my configuration file in JSON format. Is
> there
> > something special that I have to do in Catalyst to load a config file of
> > format .json or would it automatically
> > understand that the config file is in JSON format and use that for
> FormFu?
>
> FormFu uses Config::Any - so any file type it knows about will load.
> Any it doesn't, it's quite easy to write a Config::Any extension for.
>
> Be aware some things have changed since that tutorial...
>
>    $form->save_to_model
> is now
>    $form->model->update
>
>    $form->defaults_from_model
> is now
>    $form->model->default_values
>
> Carl
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>



-- =


The greater danger for most of us lies not in setting our aim too high and
falling short; but in setting our aim too low, and achieving our mark.
- Michelangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20090320/22=
927f3f/attachment.htm


More information about the HTML-FormFu mailing list