Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 29, 2019 20:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/1e235408e6c713ed73dce61643ee1688 to your computer and use it in GitHub Desktop.
<?php
$funcion = new TwigFunction("saludo", function($nombre){
return "Hola, $nombre";
});
$twig->addFunction($funcion);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment