Подключаем класс компоненты в бириксе .
1 2 3 4 |
CBitrixComponent::includeComponentClass("sl:blog.router"); //вызов статической функции $arItem["DETAIL_PAGE_URL"] = BlogRouterComponent::getDetailUrlById(701);; |
Ссылка на оф документацию
https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=2028&LESSON_PATH=3913.4565.2028