tags:

views:

73

answers:

0

Using the Catalyst::Controller::FormBuilder module to handle forms in a Catalyst application.

The documentation says you can set the form_path like this:

form_path => File::Spec->catfile( $c->config->{home}, 'root', 'forms' ),

But the call to config() in my application is at the top level of the base module. Therefore, $c is undefined. So I can't call $c->config->{home}.

What is the proper way to configure form_path please?