示例#1
0
 public function __construct()
 {
     $connection = new DBconfig();
     // database connection
     $this->connection = $connection->connectToDatabase();
     $this->helper = new helper();
     // calling helper class
 }
示例#2
0
 public function __construct()
 {
     $connection = new DBconfig();
     $this->connection = $connection->connectToDatabase();
 }