Last active
June 19, 2017 14:18
-
-
Save Pum-purum/be8f2089e0ad6645f62c16a2f0fc4f24 to your computer and use it in GitHub Desktop.
Битрикс. Функция получает из URL код элемента
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arUrlTemplates = array( | |
"section" => "#SECTION_CODE#/", | |
"element" => "#SECTION_CODE#/#ELEMENT_CODE#/" | |
); | |
$arVariables = array(); | |
$page = CComponentEngine::ParseComponentPath(GetDirPath($_SERVER["REAL_FILE_PATH"]), $arUrlTemplates, $arVariables); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment