Browse Source

add a admin dashboard controller

develop
Simon Vieille 3 days ago
parent
commit
6addbc7de4
Signed by: deblan
GPG Key ID: 579388D585F70417
  1. 21
      src/Controller/DashboardAdminController.php
  2. 5
      templates/admin/dashboard.html.twig

21
src/Controller/DashboardAdminController.php

@ -0,0 +1,21 @@
<?php
namespace App\Controller;
use App\Core\Controller\Dashboard\DashboardAdminController as Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/**
* @Route("/admin")
*/
class DashboardAdminController extends Controller
{
/**
* @Route("/", name="admin_dashboard_index")
*/
public function index(): Response
{
return $this->render('admin/dashboard.html.twig');
}
}

5
templates/admin/dashboard.html.twig

@ -0,0 +1,5 @@
{% extends '@Core/admin/layout.html.twig' %}
{% block body %}
<iframe src="https://doc.murph-project.org" frameborder="0" marginheight="0" marginwidth="0" width="100%" style="height: calc(100vh - 65px)"></iframe>
{% endblock %}
Loading…
Cancel
Save