[html-formfu] Setting default render method for Catalyst::Controller::HTML::FormFu

Carl Franks fireartist at gmail.com
Fri Oct 9 08:27:28 GMT 2009


2009/10/9 Justin W <scsys.co.uk at datademons.com>:
>
> Hi,
>
> My google-fu appears to be weak.  I want to set the render method on every
> single form on my site to tt.  I've been putting render_method: tt at the
> top
> of every single form file.
>
> Surely there's a way I can put this in the Catalyst site config file somehow
> instead of re-typing it every single time?  I've tried things like:
>
> <Controller::HTML::FormFu>
>    render_method tt
> </Controller::HTML::FormFu>

Hi,

This is what you need:

<Controller::HTML::FormFu>
  <constructor>
    render_method tt
  </constructor>
</Controller::HTML::FormFu>

Cheers,
Carl



More information about the HTML-FormFu mailing list