public function __construct() { $connection = new DBconfig(); // database connection $this->connection = $connection->connectToDatabase(); $this->helper = new helper(); // calling helper class }
public function __construct() { $connection = new DBconfig(); $this->connection = $connection->connectToDatabase(); }