Example #1
0
 /**
  * the database connection file path is provide by this function
  * the process in the function are same as that of the admin folder
  *
  * @return database connection resource
  */
 public static function getDatabase()
 {
     if (null == Database::$connection) {
         Database::initDatabase();
     }
     return Database::$connection;
 }