A
A
ayapergenov2015-09-04 11:18:12
1C-Bitrix
ayapergenov, 2015-09-04 11:18:12

How to display the company name in Bitrix?

You need to display the name of the company in the header of the site after the user is authorized in Bitrix. As a result, earned such a request.

<?
              global $USER;
              $rsUser = CUser::GetByID($USER->GetID());
              $arUser = $rsUser->Fetch();
               print_r($arUser["WORK_COMPANY"]);
              ?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-09-04
@ayapergenov

<?
global $USER;
$rsUser = CUser::GetByID($USER->GetID());
$arUser = $rsUser->Fetch();
echo "<pre>"; print_r($arUser); echo "</pre>";
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question