Answer the question
In order to leave comments, you need to log in
How to write from .tpl to twig?
Good afternoon. The tpl file has this script
<script>
catFilterList = $.grep('<?php echo preg_replace('/\s/', '',$params['filter_categslist']); ?>'.split(';'),function(n){ return n != "" });
</script>
<script>
catFilterList = $.grep('{{ preg_replace('/\s/', '', params['filter_categslist'] ) }}'.split(';'),function(n){ return n != "" });
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question