Gets a HTML::FormHandler instance by name.
$c->form('Foo')->do_stuff;
Any extra arguments are directly passed to the constructor of the Form the ctx is automatically added to the constructor
If the name is omitted, it will look for - a form object in $c->stash->{current_form_instance}, then - a form name in $c->stash->{current_form}, then - a config setting 'default_form', or - check if there is only one form, and return it if that's the case.
If you want to search for forms, pass in a regexp as the argument.
# find all forms that start with Foo my @foo_forms = $c->form(qr{^Foo});
Accepts an array reference for the list of arguments (\@args).
This was overridden since we did not have a way to dereference arrays in the template toolkit.
Returns the available names which can be passed to $c->forms
pfappserver - Catalyst based application
script/pfappserver_server.pl
[enter your description here]
pfappserver::Controller::Root, Catalyst
Inverse inc. <info@inverse.ca>
Copyright (C) 2005-2015 Inverse inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.