[html-formfu] Template::Alloy rendering

Tobias Kremer list at funkreich.de
Fri Jul 6 08:31:08 GMT 2007


Zitat von Carl Franks <fireartist at gmail.com>:
> On 05/07/07, Tobias Kremer <list at funkreich.de> wrote:
> Ah, that means that the call to render_class_args() in your template
> is overwritting the hashref that Cat-C-H-FormFu is setting - losing
> the INCLUDE_PATH value.
>
> Hmm, any ideas on whether it'd cause other problems if we changed
> render_class_args() such that subsequent calls /added/ values to the
> hashref, rather than overwritting the whole thing?

Can't think of any problems.

I just tried setting TEMPLATE_ALLOY => 1 in my global Catalyst config
like this:

---
Controller::HTML::FormFu:
    constructor:
        render_class_args:
            TEMPLATE_ALLOY: 1

Of course, this works around the problem (and I want to use T::Alloy
everywhere anyways) but now I'm getting this error instead:

undef error - undef error - Not an ARRAY reference at
/usr/local/share/perl/5.8.8/Template/Alloy.pm line 777.

--Tobias



More information about the HTML-FormFu mailing list