How to disable syntax php in volt template

Hi Phalcon pro,

My web application allows users edit files view use systax Volt template with extension .phtml I want to Disable sysntax php in volt, or replace this Please replace or disable: <?php ?>

edited Sep '16

You can't. Im just guessing they are saving it right ? This is overall really bad idea. But if you really need it just remove <?php ?> tags using regex or something when saving.

yes, i think so. Thanks

What are your concerns? They might do something nasty? Well, if that's what it is, then you just need different approach - higher level templating system which will restrict users to just move blocks or to choose predefined template. Volt is mainly meant to be web designer friendly.