I am trying to add CakeMODx.class.php to a plugin I am writting.
For some reason when I reference it (from anywhere) /assets/snippets/ or /manager/includes/
I just get:
No such file or directory, failed to open stream.
I’m 99.9% sure the file is in the folder, and that the patch to the file is correct?!?
Any ideas, thanks, J.
Try adding
MODX_BASE_PATH to the path and see if it helps:
include MODX_BASE_PATH.'/assets/snippets/FileName.php';