Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I was able to initialize the Bitrix core in bootstrap.php:
<?php
define("NOT_CHECK_PERMISSIONS", true);
define("NO_AGENT_CHECK", true);
$_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__) . "/../../");
require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");
require_once($_SERVER["DOCUMENT_ROOT"] . "/vendor/autoload.php");
function initBitrixCore()
{
global $DB;
$app = \Bitrix\Main\Application::getInstance();
$con = $app->getConnection();
$DB->db_Conn = $con->getResource();
$_SESSION["SESS_AUTH"]["USER_ID"] = 1;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question