mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-28 13:50:27 +02:00
Initial works on domain list view in panel
This commit is contained in:
parent
2f9abb2a11
commit
5cc5c72ea4
5 changed files with 160 additions and 4 deletions
19
cp/app/Controllers/DomainsController.php
Normal file
19
cp/app/Controllers/DomainsController.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
use App\Models\User;
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
class DomainsController extends Controller
|
||||
{
|
||||
public function view(Request $request, Response $response)
|
||||
{
|
||||
$userModel = new User($this->container->get('db'));
|
||||
$users = $userModel->getAllUsers();
|
||||
return view($response,'admin/domains/index.twig', compact('users'));
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue