Why not adopt me?
NAME
Maypole::FormBuilder::Model::Base
METHODS
- setup_form_mode
-
Returns a form spec for the selected form mode. The mode defaults to
$r->action. You can set a different mode in the args hash to theas_formcall. Mostly, this method is responsible for setting theactionparameter of the form.Override this in model classes to configure custom modes, and call
$proto->SUPER::setup_form_mode( $r, $args )in the custom method if it doesn't know the mode.
Modes supported here are:
list addnew search do_search
Exported Methods
- view
-
Just sets the
viewtemplate. - edit
-
Sets the
edittemplate.Also sets the
actiontoedit. This is necessary to support forwarding to theedittemplate from theeditbutton on theeditlisttemplate.
AUTHOR
David Baird, <cpan@riverside-cms.co.uk>
BUGS
Please report any bugs or feature requests to bug-maypole-formbuilder@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Maypole-FormBuilder. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
COPYRIGHT & LICENSE
Copyright 2005 David Baird, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.