Avatar Ran Qiangjun

Setup Twig Debug

Submitted by jungle on Fri, 09/20/2019 - 00:34
  1. Uncomment the line below in settings.php
  1. #
  2. # if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
  3. # include $app_root . '/' . $site_path . '/settings.local.php';
  4. # }
  1. Copy sites/example.settings.local.php to sites/[site_path]/settings.local.php

  2. Put line below into sites/development.services.yml under the parameters key

  1. twig.config:
  2.   debug: true
©2019 ranqiangjun.com. All rights reserved.