X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FManual%2FAbout.pod;h=57c616f9e1447a14713f24f8df9612f73704cecf;hb=bda79f7dd44a9469d27680c1a677f75b1aff2207;hp=3600a9476dcc01e3db038fd04ebff6fc3ea2c1dd;hpb=40e991eb37df35834e44132f35c42e0dcaf7d66b;p=maypole.git diff --git a/lib/Maypole/Manual/About.pod b/lib/Maypole/Manual/About.pod index 3600a94..57c616f 100644 --- a/lib/Maypole/Manual/About.pod +++ b/lib/Maypole/Manual/About.pod @@ -195,9 +195,10 @@ For now, simply admire its brevity, as you realise this is all the code you need to write for a simple database front-end: package BeerDB; - use base 'Apache::MVC'; + use Maypole::Application; BeerDB->setup("dbi:SQLite:t/beerdb.db"); - BeerDB->config->{uri_base} = "http://localhost/beerdb/"; + BeerDB->config->{uri_base} = "http://localhost/beerdb"; + BeerDB->config->{template_root} = "/path/to/templates"; BeerDB->config->{rows_per_page} = 10; BeerDB->config->{display_tables} = [qw[beer brewery pub style]]; BeerDB::Brewery->untaint_columns( printable => [qw/name notes url/] ); @@ -235,7 +236,7 @@ will give a list of beers. There might not be any yet. There's a box that lets you add them. If you have any problems getting to this point, you might want to look -at L. +at L. Play about with the site. Add some beers. Maybe go out and buy some beers to review if you need some inspiration. Don't be ill on my carpet.