不要渲染bitrix组件

时间:2019-01-22 07:20:36

标签: php components bitrix

我尝试包含此组件。

<? $APPLICATION->IncludeComponent(
    "mycompany:schedule",
    "",
    Array(
    "AJAX_MODE" => "N",
    "AJAX_OPTION_ADDITIONAL" => "",
    "AJAX_OPTION_HISTORY" => "N",
    "AJAX_OPTION_JUMP" => "N",
    "AJAX_OPTION_STYLE" => "Y",
    "COL1" => "Direction",
    "COL2" => "Airline",
    "COL3" => "Flight",
    "COL4" => "Departure",
    "COL5" => "Arrival",
    "COL6" => "Days of the week",
    "COL7" => "Navigation",
    "COL8" => "Aircraft type",
    "FILTER_TITLE1" => "Point of departure",
    "FILTER_TITLE1_2" => "Destination",
    "FILTER_TITLE2" => "Flight number",
    "FILTER_TITLE3" => "Departure date",
    "FILTER_TITLE4" => "Carrier",
    "FILTER_TITLE5" => "Departure",
    "FILTER_TITLE6" => "Arrival",
    "FILTER_TITLE7" => "Aircraft timetable",
    "IBLOCK_ID" => "19",
    "IBLOCK_TYPE" => "scoreboard",
    "ICOL1" => "Departure Airport",
    "ICOL2" => "Destination airport",
    "ICOL3" => "Arrival",
    "ICOL3_2" => "Departure",
    "ICOL4" => "Type of aircraft",
    "ICOL5" => "Airline",
    "ICOL6" => "Representative contacts",
    "ICOL7" => "Route",
    "LANGUAGE" => "ru",
    "LINKS1_IBLOCK_ID" => "8",
    "LINKS1_IBLOCK_TYPE" => "content",
    "LINKS1_SECTION_ID" => "322",
    "LINKS2_SECTION_ID" => "321",
    "NOT_FOUND_MESSAGE" => "Nothing found. Change filter options"
    )
);?>

如果LANGUAGE是ru或其他语言-没关系 如果是LANGUAGE,则-浏览器将使用任何脚本或样式呈现空文档,而不显示任何内容。

如果我在组件代码中设置语言,就可以了。  问题出在哪里?

2 个答案:

答案 0 :(得分:0)

好的,我找到了麻烦。

https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=2830

在component.php无限循环中。

答案 1 :(得分:0)

您仅得到500条回复。在这种情况下,只需启用错误报告功能,您就会看到错误消息,其中包含文件名和行号