Created
October 29, 2019 20:17
-
-
Save parzibyte/80037802252ea2b9310ae6b1c46ed63f 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 | |
$funcion = new TwigFunction("nombre_funcion", function(){ | |
return "Todo bien"; | |
}); | |
# La agregamos | |
$twig->addFunction($funcion); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment