[html-formfu] FormFu + Catalyst + load_config_file on Apache2

Carl Franks fireartist at gmail.com
Thu Nov 1 15:18:26 GMT 2007


On 11/10/2007, Mario Minati <mario.minati at googlemail.com> wrote:
> I've got a problem bringing my app to production.
>
> I've a Catalyst app makeing havy use of FormFu with load_config_file and
> trying to bring it to production on apache2.
>
> The forms are automatically loaded via :FormConfig, which works fine.
> Now inside the form.yml files I load other .yml form configs.
>
> And here the problem arises. On my dev machine I'm working with relative
> pathes (useing the catalyst builtin webserver) under the Catalyst root
> directory which works fine.
>
> But on apache the current working directoy is '/' !!!
> So my relative pathes doesn't work.
>
> Any ideas on how to tell apache to look in a different path???

Did you get anywhere with this?

Alternatively, you could expand the config-callback that
Catalyst::Controller::HTML::FormFu sets, so that it supports expanding
__path_to()__ in config files, as well as __uri_for()__.

Carl



More information about the HTML-FormFu mailing list