ソースを参照

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

読み込み中…
キャンセル
保存