From: Simon Cozens Date: Wed, 11 Feb 2004 15:53:05 +0000 (+0000) Subject: Docs. X-Git-Tag: 2.10~301 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2fad6adebe8c471ebb3a11b421fcde1f2d517fcc;p=maypole.git Docs. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@61 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole.pm b/lib/Maypole.pm index b55f4f8..4f73848 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -190,6 +190,9 @@ subclass the model class, and configure your class slightly differently: $r->template("template_name"); } +Then your top-level application package should change the model class: +(Before calling C) + ProductDatabase->config->{model_class} = "ProductDatabase::Model"; (The C<:Exported> attribute means that the method can be called via the