mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-14 16:46:59 +02:00
Tiny updates to the control panel
This commit is contained in:
parent
29400f319f
commit
4abca19ba3
7 changed files with 229 additions and 25 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace App\Controllers;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\Contact;
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
@ -11,9 +11,8 @@ class ContactsController extends Controller
|
|||
{
|
||||
public function view(Request $request, Response $response)
|
||||
{
|
||||
$userModel = new User($this->container->get('db'));
|
||||
$users = $userModel->getAllUsers();
|
||||
return view($response,'admin/contacts/index.twig', compact('users'));
|
||||
$contactModel = new Contact($this->container->get('db'));
|
||||
$contacts = $contactModel->getAllContact();
|
||||
return view($response,'admin/contacts/index.twig', compact('contacts'));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue