1
In a project I was using a class to define functions for the entire project, and as the project is growing the need arose for the creation of a new file with new class and function.
In this case I need to consume the class which makes the database connection in the first file. How can I do this?
Show the problem better
– Papa Charlie
The simplest way to do it is in the second file to make a
include/requireof the connection file and create a class object.– rray