I've got a problem I haven't been able to get my head around. I'm working on my own web app framework in php. I know there's plenty of good stuff out there but I like to play around with this and I'm not using it for any sensitive production stuff.
So here's the problem: I have an abstract base class which contains some functions that I want all of the models to inherit. There's also an abstract base controller which extends the base model with functions for basic manupulation. Currently, all created models extend the base model and all controllers extend the base controller. So, all controllers also inherit from the Base model through the Base controller. But now I have no access to model properties from the model controller since models extend the Base controller and it seems weird for models to extend the Base controller.
How should I set this so that I can have access to the model properties from their respective controller?
Thanks!