On Thu, 16 Sep 2004 23:47:53 +0300 (IDT), Gabor Szabo wrote
> I am trying to add a model class that has no associated table.
> It is supposed to show the results of all kinds of complex
> queries using multiple tables.
>
> I added a Module called Module::CPANTS::Maypole::Stats
> and added a call to Module::CPANTS::Maypole::Stats->require;
> I also created a template file
>
> still when I acces /stats/show I get the
>
> file error - statsshow: not found at Maypole/View/Base.pm line 69.
>
> is there a document that explains how to add a new model class ?
The default maypole CDBI models expect each model to map to a database table.
You'll have to write your own model base class that inherits from whatever
model you're using and from a quick look you'll probably need to override
adopt() and class_of() and maybe retrieve()
See the Maypole::Model::Base documentation.
--simonflk
_______________________________________________
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