[html-formfu] config_file_path

Will Hawes wdhawes at gmail.com
Mon Sep 29 22:24:49 BST 2008


2008/9/13 Geoffrey D. Bennett <g at netcraft.com.au>:
> Hi there,
>
> I'm using Catalyst::Controller::HTML::FormFu, and specify
> config_file_path => MyApp->path_to("forms"), which is fine for when I
> use :FormConfig(), but when I use load_config_file(), things don't go
> so well when running under Apache, since the cwd is "/" (the
> HTML::FormFu doc says "relative paths are resolved from the current
> working directory").
>
> I found "__path_to()__" but that seems like a bit of a hack, and means
> that your form config file path isn't centralised (having to specify
> it in each form).
>
> What do you think about moving config_file_path into HTML::FormFu?

Just found this, sorry for the delayed reply. Certainly seems like a
sensible idea to me. Carl - any objections?



More information about the HTML-FormFu mailing list