Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Extending TWIG to add another filter

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-15-2019, 06:09 AM
 
Andrew Herne Andrew Herne is offline
 

Newbie
  
Join Date: Feb 2015
Posts: 3
 

Default 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,
__________________
4.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:00 PM.

   

 
X-Cart forums © 2001-2020