Last active
October 29, 2019 20:16
-
-
Save parzibyte/7967f964d8d084bb844e43ac3018927a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# en la parte superior va la siguiente línea... | |
use Twig\TwigFunction; | |
# Después puedes definir la función ;) | |
$funcion = new TwigFunction("nombre_funcion", function(){ | |
return "Todo bien"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment