[Maypole] sub additional_data() question
Dave Howorth
dhoworth@mrc-lmb.cam.ac.uk
Wed, 27 Oct 2004 13:03:57 +0100
Peter Speltz wrote:
> Can an additional_data sub be made for each model class? OR this this
> an application class only? It's called like "$r->additional_data" so
> i'm thinking you only deifine one of these for the application.
Hi Peter,
There's one additional_data method, called once per request before the
model's process method is called. additional_data is a method in the
application class, not the model class (see the Maypole class doc). So
the results of additional_data() should typically be stored in the
request where the model and view can subsequently access them.
HTH, Dave