X
X
Xawer2015-06-08 00:26:43
Django
Xawer, 2015-06-08 00:26:43

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

1 answer(s)
O
OnYourLips, 2015-06-08
@Xawer

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 question

Ask a Question

731 491 924 answers to any question