root/trunk/templates/Controller.pm @ 1

Revision 1, 406 bytes (checked in by bradley, 5 years ago)

Initial import

Line 
1
2package Apache::Request::Controller::[% TABLE.moduleName %];
3
4use strict;
5#use Exception qw(:all);
6use Apache::Const qw(:common :methods :http);
7use Carp qw(cluck confess);
8
9use Apache::Request::Controller;
10our @ISA = (qw(Apache::Request::Controller));
11
12sub __index
13{
14    return 'list';
15}
16
17sub __openTable
18{
19    my $self = shift;
20    return DB::Table::[% TABLE.moduleName %]->open($self->{'dbh'});
21}
22
231;
24
Note: See TracBrowser for help on using the browser.