Skip to content

Instantly share code, notes, and snippets.

View devochka's full-sized avatar

Svetlana Osipova devochka

View GitHub Profile
@devochka
devochka / import_users.php
Created October 15, 2017 08:13 — forked from denysbutenko/import_users.php
[modx revo]import users from csv
<?php
require_once '/absolute_path/config.core.php';
require_once MODX_CORE_PATH.'model/modx.class.php';
$modx = new modX();
$modx->initialize('web');
$modx->getService('error','error.modError');
//To get Base Path
$basePath = $modx->config['base_path'];
// Prepare the data