HTML::Shakan::Model::Teng - Teng binding for HTML::Shakan
# 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);
This is Teng 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 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 $row by form data.
$row
Teng, HTML::Shakan
To install HTML::Shakan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Shakan
CPAN shell
perl -MCPAN -e shell install HTML::Shakan
For more information on module installation, please visit the detailed CPAN module installation guide.