Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在对 CRM > Deal 部分进行一些更改。我想对 $arresult[] 数组进行一些更改以进行某些表单验证。它在字段数组中需要一个现成的输入标签。但我想知道这个变量 $arresult[] 是在哪个文件中创建的?
任何帮助将不胜感激。
$arResult 在相应的组件中创建。在您的情况下,它将是crm.deal.editor crm.deal.list。这些系统组件位于/bitrix/components/bitrix/.
crm.deal.edit
crm.deal.list
/bitrix/components/bitrix/
无论如何,您都不应该修改“核心”组件。如果您想以某种方式修改 $arResult ,请创建您自己的组件(复制到/bitrix/components/YOUR_NAMESPACE/或result_modifier.php在组件的模板中使用。
/bitrix/components/YOUR_NAMESPACE/
result_modifier.php