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