RsD0p9BK
7/27/2016 - 11:09 AM

twig__path.php

// How to load a template from full path in the template engine TWIG

$loader = new Twig_Loader_Filesystem('/');
$loader = new Twig_Loader_Filesystem(array('/', '/path/to/templates'));

// http://stackoverflow.com/questions/7064914/how-to-load-a-template-from-full-path-in-the-template-engine-twig