By default, CakePHP has an AppModel class, and each application model inherits it. A common design pattern for exchanging logic between models is to create behavior and configure the model to $actAs such behavior.
But what if I wanted to introduce a hierarchy of model classes like this ?:
AppModel |__ Vehicle |__ Car |__ Bike |__ Helicopter
I tried to create a Vehicle class that inherits from AppModel , and then each child class inherits from Vehicle . But CakePHP tells me that it cannot find the Vehicle class.
How can I do this and where in the CakePHP directory tree should I create Vehicle ?
Thanks!
source share