How to achieve an effect similar to
require `content.php`; using AJAX? This task is relevant, for example, when creating tabs.
In content.php is, for the most part, the html-code, well, maybe with a little addition of php-code. Of course, you can stuff all HTML code in echo (in all the AJAX examples that I saw, this was done), but then the hue of the HTML syntax is lost, which is unacceptable.
.phpfiles and switch to templating? Start withTwig- Vyacheslav Potseluyko