Answer the question
In order to leave comments, you need to log in
Why is an extra file with a ruff extension like name.twig.php created?
Question details.
I'm running an application on phalcon.
the file name.twig.php or name.volt.php appears depending on which extension I specified.
What is the reason, why are they created?
Same here dude. https://www.youtube.com/watch?v=64DXzpwcUQQ
Everything would be fine, but the contents of these name.volt.php files are not updated.
Answer the question
In order to leave comments, you need to log in
wangyu: these are compiled templates.
It's not clear what the storm is about.
for you, apparently, the news is that template engines, when they are first launched, translate templates into regular php code.
hence the appearance of php-files. usually, for convenience, they are given a separate cache/compiled/etc directory.
now why don't they change. There are 3 reasons for this:
- the template has not changed
- the recompilation of templates
is disabled in the settings - something went wrong or everything went wrong
As DevMan wrote, these are compiled templates, since it is too expensive to compile .twig files to .php with each request, they should be automatically overwritten when the file is changed, if this does not happen, see the twig configuration, you may have turned off dev mode.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question