HTML::Shakan::Model::DBIxSkinny - DBIx::Skinny binding for HTML::Shakan
# create form object
my $form = HTML::Shakan->new(
request => CGI->new(),
fields => [
TextField(
name => 'foo',
),
],
model => HTML::Shakan::Model::DBIxSkinny->new()
);
# fillin_form
$form->model->fill($row);
# insert
$form->model->create($skinny => $table);
# update
$form->model->update($row);
This is DBIx::Skinny binding for HTML::Shakan.You can easy to insert/fill/update
by HTML::Shakan.
- $form->model->fill($row);
- fill the $row data to form.$row is instance of row
class of DBIx::Skinny.
- my $row = $form->model->create($skinny, $table);
- insert form data to $table.
- my $row = $form->model->insert($skinny, $table);
- insert method is synonym of create method.
- $form->model->update($row);
- update $row by form data.
DBIx::Skinny, HTML::Shakan