A
A
Alexander Ivanov2016-04-15 14:36:28
PHP
Alexander Ivanov, 2016-04-15 14:36:28

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(); //закрываем его
?>

I
<?$APPLICATION->ShowPanel();?>
can no longer apply, but I need to.
The solution that I proposed is not so hot.
In theory, it should be like this ->
https://dev.1c-bitrix.ru/learning/course/?COURSE_I...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2016-04-15
@cimonlebedev

<?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 question

Ask a Question

731 491 924 answers to any question