getPublicUrl
Attention! We strongly recommend first to learn more about Sites module REST documentation to understand how the module functions (with REST available in Bitrix24 Self-hosted editions). View this documentation as useful source when working with Bitrix24 Self-hosted editions and when you want to learn more about API.
public static function Site::getPublicUrl( $id, $full = true );
Gets full site URL
Parameters
Class | Description | Available from version |
---|---|---|
$id | Site ID. | |
$full | when true (by default), returns full site address. |
Examples
if (\Bitrix\Main\Loader::includeModule('landing')) { echo \Bitrix\Landing\Site::getPublicUrl(1); }
© «Bitrix24», 2001-2024