Explorar o código

Sample code on how to install module programmatically

Alex Trofimov %!s(int64=5) %!d(string=hai) anos
pai
achega
0dfee86dbe
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      samples/install_module.php

+ 8 - 0
samples/install_module.php

@@ -0,0 +1,8 @@
+<?php
+
+$aPathInfo = pathinfo(__FILE__);
+require_once ($aPathInfo['dirname'] . '/../inc/header.inc.php');
+
+$a = BxDolStudioInstallerUtils::getInstance()->perform('boonex/intercom/', 'install', array('auto_enable' => true));
+echo json_encode($a);
+