Answer the question
In order to leave comments, you need to log in
Smarty template engine: what is the difference between cache and compiled files?
When initializing the Smarty template engine, you can set the path for caches, and the path for compiled files.
setCacheDir() and setCompileDir() methods.
What's the Difference? in terms of the contents of the files, they are almost the same, but what is their principle and what does each serve for?
and the second question at the same time:
also during initialization, you can set the path to the templates, through the setTemplateDir () method.
is it possible not to specify the path to the templates if my templates are rendered through the display method with the full path in the template?
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