I
I
IvanRobot2016-04-19 23:20:05
PHP
IvanRobot, 2016-04-19 23:20:05

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

1 answer(s)
S
Sergey, 2016-04-19
@IvanRobot

And you look at the file "/bitrix/header.php" it is his) in the Bitrix folder right lies.
You're a little confused, maybe it's time to sleep)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question