[Maypole] Using maypole with existing CDBI business objects

Simon Cozens simon@simon-cozens.org
Mon, 1 Mar 2004 16:53:46 +0000


Michael D. Ivey:
> I have a set of Class::DBI business objects, and haven't written the web
> portion yet.  I'd like to use Maypole.  Is there a simple way to build
> the Model class based on existing class heirarchy?

You don't need to build your own Model class. It Just Works.
See the BeerDB example (http://maypole.simon-cozens.org/doc/beerdb.html)

Maypole: if you're writing code, YOU'RE DOING SOMETHING WRONG.

-- 
There's no cinnamon and no lemon or orange involved. If there were, it was a 
heretic who mixed it up and the mixer should be impaled on a stake and buggered
by the Shrike for two hours, then taken down and forced to rub the wounds with 
the mix until death sets in. - Ingvar Mattsson *cares* about cocktails.