Answer the question
In order to leave comments, you need to log in
How to display component parameters in component.php in Bitrix?
in the component I add a parameter
in the .parameters.php file in the component I write:
<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arComponentParameters = array(
"PARAMETERS" => array(
"SUCCESS_TEXT" => Array(
"NAME" => "Текст",
"DEFAULT" => "Спасибо",
),
)
);
<?$APPLICATION->IncludeComponent(
"dev:booking.form",
".default",
array(
"SUCCESS_TEXT" => "Спасибо!",
"COMPONENT_TEMPLATE" => ".default"
),
false
);?>
Answer the question
In order to leave comments, you need to log in
Judging by the CBitrixComponent sources, this is not provided,
so you can upd. still found it
CComponentUtil::GetComponentProps($componentName, $arCurrentValues = array(), $templateProperties = array())
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question