Hi guys,
Can someone help my little brain. I seem to be having a moment.
I have created a custom package for testimonials with MIGXdb and that's fine and is all working.
However when I try to include the package in the snippet with $modx->addPackage it's failing for some reason
As far as I can see everything is ok.
Here is the code grabbing the package:
<?php
$path = MODX_CORE_PATH . 'components/testimonials/';
$result = $modx->addPackage('testimonials', $path . 'model/');
if (!$resut) {
return 'Failed to add package';
} else {
$o = '';
}
and so on
my package is at
core/components/testimonials/
within here I have:
model/schema
model/testimonials
So it all seems as it should to me but somethings obviously awry.
Any help would be amazing ta!!