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