Answer the question
In order to leave comments, you need to log in
django and php. How to make friends?
Good day!
I came across one problem:
You need to include a php file in the djanga template. The django-php solution doesn't fit. Because the included file adds cookies.
Question: how can I execute the file and add the result of its work to the template?
Answer the question
In order to leave comments, you need to log in
You need to write a template compiler in PHP.
Take a look at Twig: your project will differ slightly from it (by a couple of percent).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question