mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-28 07:03:28 +02:00
Added logs page to the panel
This commit is contained in:
parent
4abca19ba3
commit
361ccb3a7e
8 changed files with 163 additions and 42 deletions
18
cp/app/Controllers/LogsController.php
Normal file
18
cp/app/Controllers/LogsController.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
use App\Models\RegistryTransaction;
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
class LogsController extends Controller
|
||||
{
|
||||
public function view(Request $request, Response $response)
|
||||
{
|
||||
$logModel = new RegistryTransaction($this->container->get('db'));
|
||||
$logs = $logModel->getAllRegistryTransaction();
|
||||
return view($response,'admin/logs/index.twig', compact('logs'));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue