Hey
thanks for your time
>>> The fact that you don't get a success or failure message suggest that something is going wrong inside the addPackage() function. Anything in the MODX error log (Reports -> Error Log).?
it's empty after this code ran:
<?php
$path = MODX_CORE_PATH . 'components/certsfunction/';
$result = $modx->addPackage('certsfunction',$path . 'model/','import_');
if (! $result) {
return 'failed to add package';
} else {
$output1 = '<p>added Package</p>';
}
$CERT = $modx->getCollection('Certs');
//$CERT = $modx->getCollection('certs',array('LENDERNAME'=>'Atlantic Bank'));
$output1 .= '<p>Total: '. count($CERT) . '</p>';
/*foreach($CERT as $quote) {
$output .= '<p>LENDERNAME: ' . $quote->get('LENDERNAME');
$output .= '
LOAN_ID: ' . $quote->get('LOAN_ID'). '</p>';
}*/
return $output1;
>>> don't think the capital C should be a problem.
ok
>> I wonder if you need to call your class modCerts
no no, I do not call it I only listed it's code for the forum. The complete/all lines of the executed code is above.
Digging more..
[ed. note: modx.customize last edited this post 14 years, 9 months ago.]