A
A
ArrayPop2020-07-05 12:13:05
1C-Bitrix
ArrayPop, 2020-07-05 12:13:05

Bitrix how to display $APPLICATION->GetProperty?

$APPLICATION->GetProperty prints false, and $APPLICATION->ShowProperty prints what it needs because it's deferred. How to get all the same this data without outputting?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Vorobyov, 2020-07-08
@BXVoral

If at the time of the call this property is not set, then there is no way to get it. Here the essence must be understood. YOU want to get a value that is not yet set in any way and it is not known what it will be.
If you do at the very beginning of header.php then it will not be false, but value1 . But! Let's say you use it, but add it in the footer as a result, it turns out that you are working with the wrong value. Because ShowProperty will show value2 and you have "already" processed value1 So you better be wondering why. Why are you doing it? Perhaps you are just going the wrong way.
$APPLICATION->SetProperty('MyProp','value1');
$APPLICATION->SetProperty('MyProp','value2');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question