[Catalyst] FormBuilder - Can't locate object method "form" via package

Dermot paikkos at googlemail.com
Tue Feb 26 10:56:27 GMT 2008


On 25/02/2008, Joshua McAdams <joshua.mcadams at gmail.com> wrote:
>
> >  sub edit : Local Form {
> >   my ($self, $c) =3D @_;
> >   if ($c->form->submitted && $c->form->validate) {
> >     $c->stash->{message} =3D 'Thanks for submitting the form';
> >   }
> >  }
>
>
> Use $self->formbulder instead of $c->form.  That chapter suffered from
> a quick rewrite and some of the examples use and older syntax for
> accessing formbuilder.



$self->formbuilder

Thanx.  In the same section it uses

[% form.render %] for the tt2. template that should read

[% FormBuilder.render %]

Dp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080226/22a8f=
4b6/attachment.htm


More information about the Catalyst mailing list