- or download this
__PACKAGE__->config(
dsn => 'dbi:Oracle:DUMMY',
...
password => 'dummypass',
options => { AutoCommit => 1 },
);
- or download this
sub dummyMethod {
my ( $self, $id ) = @_;
my $r = $self->dbh->selectrow_hashref("SELECT id, name FROM us
+ers WHERE id = $id");
return $r;
}
- or download this
sub index :Path :Args(0) {
my ( $self, $c ) = @_;
...
$c->stash->{data} = Data::Dump::pp($data);
$c->stash->{template} = 'homepage.tt2';
}