hi swr,
after alot of scratching my head I worked this out, but then I was faced with the problem that
$this->table_name=='armedhippo'
but my table for armedhippo only has the extra elements that aren't contained in table hippo
|hippos
| id
| name
----------------------------
| armedhippo
| id
| num_mount_points
I can write functions in class hippo which utilise (extend) the functions in class hippo, but when these are called, instead of being able to find name they return with an error because they are looking to $this->table_name (which is now armedhippo) for their data.
Is there a way around this. I'm sure there must be but apart from adding subtable variables into the hippo class just for the classes that it spawns, I can't think of how this can be done. (I'm pretty sure this is not the way to do this as it seems to defeat the point of OOP)
thanks for your help,
norpel