PHP code example of qeep-pro / twig-tree-tag
1. Go to this page and download the library: Download qeep-pro/twig-tree-tag library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
qeep-pro / twig-tree-tag example snippets
$loader = new \Twig_Environment(
new \Twig_Loader_Filesystem(__DIR__.'/view/')
);
$twig->addExtension(new QEEP\TwigTreeTag\Twig\Extension\TreeExtension());
// (...)