Метод используется для идентификации административного раздела сайта /bitrix/admin/
. Возвращает true
если в этом разделе, и false
в остальных случаях
Created
February 19, 2016 11:21
-
-
Save nook-ru/1263fb558fc392674abe to your computer and use it in GitHub Desktop.
Bitrix (d7) is admin section
This file contains hidden or 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
<?php | |
use \Bitrix\Main\Context; | |
Context::getCurrent()->getRequest()->isAdminSection(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment