krot

MODX gallery upload

May 24th, 2019
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  $gallery = array(
  2.               'id' => $id,
  3.               'name' => ($row['name']),
  4.               'rank' => 0,
  5.               'file' => MODX_BASE_PATH.'/assets/files/'.($im)
  6.             );
  7.  
  8.             $upload = $this->modx->runProcessor('gallery/upload', $gallery, array(
  9.               'processors_path' => MODX_CORE_PATH.'components/minishop2/processors/mgr/'
  10.             ));
RAW Paste Data