Just a quick question really.
I am re-writing a site and I am converting it all to OOP and putting it all into templates.
I have multiple classes, but I want to extend one of them from a separate file/class.
Do I have to require_once() the parent class to extend it?
I’m guessing you do but I just wanted to make sure.
Thanks in advance!
Nomally it’s neat to define an autoloader when you want to include a bunch of classes from a bunch of different files such as:
And then load whatever class name you have, i.e.: