Answer the question
In order to leave comments, you need to log in
Why does require in bitrix work differently than described in the php documentation?
How does it happen? The template is in local/ , but the path to bitrix/require
is still written in it . In addition, header.php is generally located in the bitrix /templates/ directory Did Bitrix somehow change the principle of operation ?require
<?php
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
?>
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