Search results for: "variable", 47 result(s).

[Snippet] Use the JSON pretty print with the Twig json_encode filter

[Snippet] Using a closure to assign the result of a PHP switch-case to a variable

[Snippet] Accessing the logged user in a Twig template

[Snippet] Getting the current environment in a Twig template with Symfony

[Snippet] Dynamic date creation depending on the current fixture with nelmio/alice

[Snippet] Testing if a class attribute is initialized with PHP

[Snippet] Using the PHP compact function with the Symfony debug functions

[Snippet] Getting the name of a Twig template inside a Twig template