Re: [Maypole] sub additional_data() question

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Wed Oct 27 2004 - 13:03:57 BST


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

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT