-
-
Save muskie9/193b3c8c165cb4db3dabd371b4c71983 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function Leaderboard() { | |
$databaseConfig2 = array( | |
'type' => 'MySQLDatabase', | |
'server' => 'localhost', | |
'username' => 'username', | |
'password' => 'password', | |
'path' => '', | |
'database' => 'silverstripe715' | |
); | |
DB::connect($databaseConfig2); | |
$leaders = Leader::get(); | |
global $databaseConfig; | |
DB::connect($databaseConfig); | |
return $leaders; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment