Fundamentos de Symfony 6: Servicios, Configuración y Entornos
Configurar el servicio de caché
  Unlock this challenge
Login Register

Challenge 1 / 1

Suppose we open up config/packages/twig.yaml and add a global variable:

twig:
    default_path: '%kernel.project_dir%/templates'

    globals:
        the_answer: 42

How could we read a list of all of the "globals" from inside our app?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.