mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-24 22:44:30 +02:00
16 lines
319 B
PHP
16 lines
319 B
PHP
<?php
|
|
|
|
use MyAAC\Models\Player;
|
|
|
|
defined('MYAAC') or die('Direct access not allowed!');
|
|
|
|
$balance = 0;
|
|
|
|
if ($db->hasColumn('players', 'balance')) {
|
|
$balance = Player::orderByDesc('balance')->limit(10)->get(['id', 'name', 'balance'])->toArray();
|
|
}
|
|
|
|
$twig->display('balance.html.twig', array(
|
|
'balance' => $balance
|
|
));
|