Hashref of the supported DBMS type->form element translations.
Default options for Form::Sensible field classes.
This gets field definitions for a given datatype and returns them in hashref form.
Get field names for the form, for example, the column names in the table.
Get a given field's definition.
Form::Sensible::Reflector::DBIC - A reflector class based on Form::Sensible and Form::Sensible::Reflector
version 0.0347
my $schema = TestSchema->connect('dbi:SQLite::memory:'); $schema->deploy; use Form::Sensible; use Form::Sensible::Reflector::DBIC; ## name must reflect the table which we are reflecting my $dt = DateTime->now; my $reflector = Form::Sensible::Reflector::DBIC->new(); my $form = $reflector->reflect_from( $schema->resultset("Test"), { form => { name => 'test' }, with_trigger => 1 } ); my $renderer = Form::Sensible->get_renderer('HTML'); $form->set_values( { date => $dt } ); my $output = $renderer->render($form)->complete;
To install Form::Sensible::Reflector::DBIC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Sensible::Reflector::DBIC
CPAN shell
perl -MCPAN -e shell install Form::Sensible::Reflector::DBIC
For more information on module installation, please visit the detailed CPAN module installation guide.