Answer the question
In order to leave comments, you need to log in
How to display your header.php in Bitrix (more in detail)?
Let's say I have several pages with different styles and headers.
if i do like this:
<?
ob_start();
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
ob_end_clean(); //очищаем буфер
ob_end_flush(); //закрываем его
?>
<?$APPLICATION->ShowPanel();?>
Answer the question
In order to leave comments, you need to log in
<?require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');?>
<head>
<?$APPLICATION->ShowHead()?>
</head>
<body>
<?$APPLICATION->ShowPanel();?>
<?$APPLICATION->IncludeComponent(
.....
);?>
<?require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_after.php');?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question