Menu
Is it possible to use a class inside of another class?
I have a class that (using AJAX) interacts with a database (via PHP). Now I’m creating another class, a job ticket, that when an instance is created, must query the database to fill all the appropriate variables. My question is, is there a way to import the first class, so that it is usable in the second class, or do I have to copy and paste the class inside of the second class?
I hope all that makes sense. If anyone can offer any ideas, I’d really appreciate it!
Thanks,
Brian