[Catalyst] On HTML::FormFu rendering

Alex Povolotsky tarkhil at over.ru
Wed Mar 5 15:03:32 GMT 2008


Hello!

I'm trying to use Catalyst::Controller::HTML::FormFu

Code is quite simple for this time
=== from controller ===
sub add : Local FormConfig {
    my ($self, $c) = @_;
    my $form : Stashed;
}
=== cut ===

=== TT template ===
[% META title = 'Add user' %]
[% Form.render %]
=== cut ===

=== YML template ===
---
elements:
  - type: Text
    name: login
    label: 'Login:'
  - type: Password
    name: pass1
    label: 'Password:'
  - type: Password
    name: pass2
    label: 'Repeat password:'
  - type: Submit

=== cut ===

However, form does not get rendered. form.render works, but should 
Form.render be better?

And can I produce much nicer forms as FormBuilder do by default?

Alex.




More information about the Catalyst mailing list