[html-formfu] (catalyst + formfu + TT + mason) undef error - Can't
use string ("") as a HASH ref while...
Benjamin Bellee
bellee at webit.de
Fri Jan 18 15:46:10 GMT 2008
hello,
im getting this error:
snip-------------------------------
undef error - Can't use string ("") as a HASH ref while "strict refs" in
use at /usr/local/share/perl/5.8.8/HTML/FormFu/Util.pm line 302. Stack:
[/usr/local/share/perl/5.8.8/HTML/FormFu/Util.pm:302]
[/home/twist/ws/liekwoe-catalyst-2/root/formfu/start_form:1]
[/usr/local/lib/perl/5.8.8/Template/Document.pm:155]
[/usr/local/lib/perl/5.8.8/Template/Context.pm:345]
[/usr/local/lib/perl/5.8.8/Template/Context.pm:407]
[/home/twist/ws/liekwoe-catalyst-2/root/formfu/form:2]
[/usr/local/lib/perl/5.8.8/Template/Document.pm:155]
[/usr/local/lib/perl/5.8.8/Template/Context.pm:345]
[/usr/local/lib/perl/5.8.8/Template/Service.pm:94]
[/usr/local/lib/perl/5.8.8/Template.pm:68]
[/usr/local/share/perl/5.8.8/HTML/FormFu/base.pm:81]
[/usr/local/share/perl/5.8.8/HTML/FormFu/base.pm:20]
[/usr/local/share/perl/5.8.8/HTML/FormFu.pm:35]
[/usr/local/share/perl/5.8.8/HTML/Mason/Request.pm:1175]
[/home/twist/ws/liekwoe-catalyst-2/root/review/view:10]
snip---------------------------
while trying to get formfu working with TT.
i'm using mason for the general HTML-templates and
(try to) use TT for the FormFu layout.
i think i've followed the docu correctly, here is what i've done:
1. added this to the main project YAML:
'Controller::HTML::FormFu':
constructor:
render_method: tt
2. Im using Catalyst::Controller::HTML::FormFu,
so in the controller im writing:
sub view : Chained('review') PathPart() CaptureArgs() : FormConfig
{
my ( $self, $c) = @_;
my $form : Stash;
....
....
}
3. in my mason template im using:
<%args>
$form
.....
</%args>
.....
<% $form %>
......
4. i've done
script/myapp_create.pl HTML::FormFu
anything i've missed or forgot or doing wrong?
thanks in advance
Benjamin
More information about the HTML-FormFu
mailing list