1Apache::MVC(3) User Contributed Perl Documentation Apache::MVC(3)
2
3
4
6 Apache::MVC - Apache front-end to Maypole
7
9 package BeerDB;
10 use Maypole::Application;
11
13 A mod_perl platform driver for Maypole. Your application can inherit
14 from Apache::MVC directly, but it is recommended that you use May‐
15 pole::Application.
16
18 Create a driver module like the one illustrated in Maypole::Applica‐
19 tion.
20
21 Put the following in your Apache config:
22
23 <Location /beer>
24 SetHandler perl-script
25 PerlHandler BeerDB
26 </Location>
27
28 Copy the templates found in templates/factory into the beer/factory
29 directory off the web root. When the designers get back to you with
30 custom templates, they are to go in beer/custom. If you need to over‐
31 ride templates on a database-table-by-table basis, put the new template
32 in beer/table.
33
34 This will automatically give you "add", "edit", "list", "view" and
35 "delete" commands; for instance, to see a list of breweries, go to
36
37 http://your.site/beer/brewery/list
38
39 For more information about how the system works and how to extend it,
40 see Maypole.
41
43 This class overrides a set of methods in the base Maypole class to pro‐
44 vide its functionality. See Maypole for these:
45
46 get_request
47 parse_location
48 parse_args
49 redirect_request
50 get_protocol
51 send_output
52 get_template_root
53
55 Simon Cozens, "simon@cpan.org"
56
58 Aaron Trevena Marcus Ramberg, "marcus@thefeed.no" Sebastian Riedel,
59 "sri@oook.de"
60
62 You may distribute this code under the same terms as Perl itself.
63
64
65
66perl v5.8.8 2005-11-23 Apache::MVC(3)