[Catalyst] problem with FormBuilder + TT2
jjn1056 at yahoo.com
Mon Sep 18 15:41:12 CEST 2006
-- Ash Berlin <ash at cpan.org> wrote:
> Moritz Sisenop wrote:
> > Hello!
> > I am using FormBuilder,
> CGI::FormBuilder::Source::File, and TT2.
> > I set the template in the source file:
> > template:
> > type: TT2
> > template: customers/signup.tt2
> > And get the following error:
> > undef error - Fatal: file error -
> customers/signup.tt2: not found at
> line 149
> > called at
> > line 66
> > Might it be that FormBuilder doesn't find the
> Catalyst template dir,
> > and if yes, how do I let FB know?
> > Any help is greatly appreciated.
> > Best regards,
> > Moritz
I had a similar trouble when I just started to use
formbuilder. Here's what I did:
First, I put some global config stuff into my catalyst
## Formbuilding options
the 'form_path' option I set so that by default my
*.fb files end up in the same location as my template
Then I find that if I am using a reasonably standard
setup for TT my actions automatically find the *.fb
and *.tt files for me.
that '__path)to...__' biz is something that the
ConfigLoader plugin translates for you, I am doubtful
it will work in your standard *.fb file.
Hey, question for you; are you using Formbuilder with
a database? If so what are you doing to manage
getting stuff between formbuild and your datbase of
choice? I'm using DBIx and just doing braindead stuff
like writing a bunch of $c->form->field(name=>,
value=>) but I figure there's a better way. I just
can't seem to get DBIx::Class::FormTools to do what I
think it can do for me. Maybe I just need more work
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Catalyst