On 11/22/05, Kieren Diment <[EMAIL PROTECTED]> wrote:
>
> On 22 Nov 2005, at 21:45, David Baird wrote:
>
> > We also need to think about the use case. We should be encouraging
> > people to build their own base model, which inherits from one of the
> > standard models.
>
> Can you clarify what this means in words of one syllable for the
> likes of me please? Or point me to somewhere in the docs that does
> (svn or cpan).
>
> Assume that we're using simons magic config script for convenience
> (as I assume that's going to make it to 2.11).
>
Kd , with regards to using custom base model, it means ,
you set a model class in you config before calling setup .
$r->config->model("BeerDB::NewBase" ) ; #
BeerDB::NewBase is in a file somewhere more than likely and contains
statements to use any model plugins.:
package BeerDB::NewBase;
use base qw/Maypole::Model::CDBI Maypole::Plugin::Model::CDBISweet/;
...
My base model class contains overrides of view, edit , delete. ,ect.
But I do not see how to specify a base model class in the quick setup script.
pjs
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel