瀏覽代碼

Logo en paramètres (login + adminlte)

develop
Guillaume 3 年之前
父節點
當前提交
145d9ff995
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      Controller/Dashboard/DashboardAdminController.php
  2. +1
    -1
      Controller/Security/SecurityAdminController.php

+ 1
- 1
Controller/Dashboard/DashboardAdminController.php 查看文件

@@ -26,7 +26,7 @@ class DashboardAdminController extends AbstractDashboardController
// the name visible to end users
->setTitle('LA CLIC !')
// you can include HTML contents too (e.g. to link to an image)
->setTitle('<img src="assets/img/laclic.png" width="100px">')
->setTitle('<img src="assets/img/'.$this->get('parameter_bag')->get('app.admin.logo').'" width="100px">')
// the path defined in this method is passed to the Twig asset() function
->setFaviconPath('favicon.svg')
// the domain used by default is 'messages'

+ 1
- 1
Controller/Security/SecurityAdminController.php 查看文件

@@ -39,7 +39,7 @@ class SecurityAdminController extends AbstractController
// the title visible above the login form (define this option only if you are
// rendering the login template in a regular Symfony controller; when rendering
// it from an EasyAdmin Dashboard this is automatically set as the Dashboard title)
'page_title' => '<img src="assets/img/laclic.png" >',
'page_title' => '<img src="assets/img/'.$this->get('parameter_bag')->get('app.admin.logo').'" >',

// the string used to generate the CSRF token. If you don't define
// this parameter, the login form won't include a CSRF token

Loading…
取消
儲存