X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Extending TWIG to add another filter (https://forum.x-cart.com/showthread.php?t=76825)

Andrew Herne 02-15-2019 06:09 AM

Extending TWIG to add another filter
 
Please could someone help me create an add-on that just adds a TWIG filter that calls a PHP function.


I know the filter works as I currently have it working by editing the core XCart AbstractTwigEngine PHP classes.


When I try to create an add-on extending \XLite\Core\Templating\Twig\Extension\XCart the redeployment of the store hangs at step 6 when it parses the modules.


Thanks,


All times are GMT -8. The time now is 09:09 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.