Catalyst::Plugin::Spark::Form - A simple plug-in to make forms accessible quickly off the CTX.
version 0.01000002
use Catalyst qw/ Spark::Form /; ... sub action { my ( $self, $ctx, @rest ) = @_; $ctx->form('bar') # loads My::Project::Form::Bar or My::Project::F::Bar }
$ctx->form( $formname )
Code thrown together by James Laver http://jameslaver.com.
Code stolen from $c->controller.
The code mightn't work, but its not my fault if it doesn't. Will gladly accept patches.
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2012 by Kent Fredric.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catalyst::Plugin::Spark::Form, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Spark::Form
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Spark::Form
For more information on module installation, please visit the detailed CPAN module installation guide.