smdgithub / twig-language-extensions-for-joomla
A twig extension for joomla language to work with Twig V2
dev-master
2017-07-31 23:01 UTC
Requires
- php: >=5.3.0
- joomla/language: ~1.1
- twig/twig: ~2.0
This package is not auto-updated.
Last update: 2025-03-25 20:23:57 UTC
README
Setup
Add the extension to the twig environment:
// Configure Twig $loader = new \Twig_Loader_Filesystem(JPATH_TEMPLATES); $twig = new \Twig_Environment($loader, $options = array()); // Register Extension $twig->addExtension(new \TwigJoomla\Extension\TextExtension); // Render Template $template = $twig->loadTemplate('test.twig'); echo $template->render(); ```"# twig-language-extensions-for-joomla" "# twig-language-extensions-for-joomla"