I'm just starting out w/ CDBI and what I do is just use it in the runmode:
use My::CDBI::Subclass;
sub user_data {
my $self = shift;
my $query = $self->query();
my $user_obj = My::CDBI::Subclass->retrieve(
$query->param( 'userid' ) );
# yada yada yada...
}
Later on, you may want to have a tighter integration w/ your CDBI
objects and the templates and that's where you may be interested in
switching from the built-in HTML::Template support to the TT Plugin,
since TT has a better (*cringe*) integration w/ CDBI instances.
Have fun!
- Jason
PS: I feel a Michael Peters post beating me to the punch here... ;)
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.