Last active
June 2, 2017 12:15
-
-
Save vozhukh/9cfcba773079f2c44d66f89dbcc7339c to your computer and use it in GitHub Desktop.
встновлення модуля бітрикс через API
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
<?php | |
/* | |
В консолі бітрикс /bitrix/admin/php_command_line.php виконуємо код нижче. Замінивши $module_id на ID вашого модуля. | |
Поправити path якщо установлення з /local/ | |
*/ | |
$module_id = 'ovv.testmodule'; // ID модуля | |
$module_class = str_replace('.','_', $module_id); | |
if(@file_exists($DOCUMENT_ROOT."/bitrix/modules/".$module_id."/install/index.php")) | |
{ | |
include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$module_id."/install/index.php"); | |
$obModule = new $module_class; | |
$obModule->DoInstall(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment