Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Advantages of modern templating engines: template inheritance, safety due to auto-escaping, convenient logic in templates, not mixed with business logic.
PHP used to be a templating engine, but by today's standards it's a terrible fit for that role due to the increased quality requirements of a templating engine over the years.
If you want to write PHP code in a template (bad idea), then take Blade (popular in Laravel).
Otherwise, use Twig.
nav('filling.php?action=fill&amount=' + $('#fillingAmount').text());
what is this for? I understand how many should be specified?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question