Сниппет 1 "getF"

Jan 24, 2018

Сниппет 1 "getF"

$modx->loadClass('myclass', $modx->getOption('assets_path') . 'plugins/g/', true, true); 
$myObj = new myClass();
$result = $myObj->make($resource_id);
return $result;


В консоле
$resource_id = 1;
echo $modx->runSnippet('getF',['resource_id'=>$resource_id]);