I have an idea which requires loading in another class. Let's say I have index.php that includes once (database.php). In a class, is it acceptable to create a new object that is not extended by the class? In otherwords, brining in the content globally instead? Here's what I mean...
index.php:
----------------------
include_once ('./core/dataAccess.php');
....
class home {
private function getUsers() {
$dataAccess = new DataAccess();
}
}