Blame view
local/php_interface/include/handlers.php
1.09 KB
80576aee7 Интеграция верстк... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
<?php if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); use \Bitrix\Main\Loader; use \Bitrix\Iblock; global $USER; $eventManager = \Bitrix\Main\EventManager::getInstance(); /** * load common module */ AddEventHandler("main", "OnPageStart", "loadLocalModule", 1); function loadLocalModule() { Loader::includeModule("local.common"); } /** * Loading composer */ //if (file_exists($_SERVER['DOCUMENT_ROOT'].'/../vendor/autoload.php')) { // require_once $_SERVER['DOCUMENT_ROOT'].'/../vendor/autoload.php'; //} /** * part for event handlers */ // USER // $eventManager->addEventHandler("main", "OnBeforeUserRegister", ["\\Local\\Common\\Handlers\\User", "beforeRegister"]); // $eventManager->addEventHandler("main", "OnBeforeUserAdd", ["\\Local\\Common\\Handlers\\User", "beforeAdd"]); // $eventManager->addEventHandler("main", "OnBeforeUserLogin", ["\\Local\\Common\\Handlers\\User", "beforeLogin"]); //$eventManager->addEventHandler("main", "OnEpilog", ["CDecPage", "handlerOnEpilog"]); //Добавляем товарам DESC_ID и Фото РЛС |