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