Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 29, 2019 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/130c26196118529ae536d3a7dd9b23b2 to your computer and use it in GitHub Desktop.
Save parzibyte/130c26196118529ae536d3a7dd9b23b2 to your computer and use it in GitHub Desktop.
<?php
function view($nombre, $datos = [])
{
echo Twig::obtener()->render("$nombre.twig", $datos);
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment