Answer the question
In order to leave comments, you need to log in
Why when outputting “< ?php? >" via echo, are the tags commented out?
This is all just an example, in fact, when I replace {% and %} with < ?php ? > outputs
Code:
echo '<?php if(2==2): ?> <div> LOL </div> <?php endif; ?>';
Answer the question
In order to leave comments, you need to log in
1. get rid of the template,
or
2. write additional tags for the template engine to recognize the insertion of pure php code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question