[html-formfu] variable form config file

Steve Rippl rippls at woodlandschools.org
Tue Dec 29 16:37:14 GMT 2009


Octavian Râsnita wrote:
> Hi,
>
> You can use something like this:
>
> package MyApp::Controller::Test;
> use base 'Catalyst::Controller::HTML::FormFu';
>
> sub action : Local {
>  my ($self, $c, $template) = @_;
>
>  my $form = $self->form;
>  $form->load_config_filestem($template);
>  $form->process;
>  $c->stash(form => $form);
> }
>
> And you could access it at an URL like:
>
> http://www.site.com/test/action/user
>
> It will display the form user.yaml (or user.conf).
>
> Octavian
>
Thanks Octavian and Charlie.  I had tried to look over the documentation 
but had missed looking closely at the Synopsis at the top!

Thanks again.

-- 
Steve Rippl
Technology Director
Woodland Public Schools
360 225 9451 x326




More information about the HTML-FormFu mailing list