Extend the Class with another class
samuelkaufmann opened this issue · comments
Samuel Kaufmann commented
Is it possible to add more functionality via the extends
in the main API Class controller
class apiController extends dbController {}
Tyler Dence commented
Possibly... what are you trying to accomplish by doing so?
Samuel Kaufmann commented
I got a DB-Controller and would like to 'extend' the class with the following Class:
'
'
Tyler Dence commented
It may work... have you tested it to see? It's not something I've tested myself, but as long as the actual api endpoints are defined in the child class, I think it should work.
Let me know if you get any errors while trying.