[Catalyst] Class::DBI::FromForm;
Krzysztof Krzyzaniak
eloy at kofeina.net
Mon Jul 25 22:48:56 CEST 2005
I need some explanation. I am quite fresh with Class::DBI, previously
always I've used only DBI with explicite SQL code. Now I am trying avoid
using sql code (for fun, for test) and now I stuck.
I have some HTML form, which send to controller some data:
sub do_add : Local
{
my ($self, $c) = @_;
if ( $c->req->params->{'upload_file'} eq 'yes' )
{
... some parsing & checking there
TrackCD::M::CDBI::Record->create_from_form( \%hash );
$c->forward('/tcd/record/list');
}
}
I have of course Model for TrackCD::M::CDBI::Record (with demanded
plugins) but I need information how to build %hash - maybe there is some
'easy and magic' way?
eloy
--
-------e-l-o-y-----------e-l-o-y- at -t-r-a-n-s-i-l-v-a-n-i-a-.-e-u-.-o-r-g------
jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej
More information about the Catalyst
mailing list