[Catalyst] Only call individual fields by number?
Ascii King
tech at swattermatter.com
Fri Dec 12 21:01:58 GMT 2008
I can call my fields using this code:
[% FOREACH thing IN FormBuilder.fields %]
[% thing.tag %]
[% END %]
If I have a field named "fullname" I cannot call it individually with either
of the following commands:
[% FormBuilder.field.fullname.field %]
[% FormBuilder.field.fullname.tag %]
I can only call it like this:
[% FormBuilder.field.0.tag %]
I have been over the documentation and I feel I am putting it in the way I
was told. The only thing I can see that might affect it is this bit of code.
my $form = CGI::FormBuilder->new(
fields => \@fields,
template => {
type => 'TT2',
template => 'form.tmpl',
variable => 'form'
},
);
This code fails for me complaining that the variable 'fields' is not scoped
properly. "Global symbol "@fields" requires explicit package name at "
--
View this message in context: http://www.nabble.com/Only-call-individual-fields-by-number--tp20983599p20983599.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.
More information about the Catalyst
mailing list