We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15083
    • 697 Posts
    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.
      • 4041
      • 788 Posts
      Try adding MODX_BASE_PATH to the path and see if it helps:

      include MODX_BASE_PATH.'/assets/snippets/FileName.php';
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 15083
        • 697 Posts
        Quote from: Breezer at Sep 25, 2009, 05:22 AM

        Try adding MODX_BASE_PATH to the path and see if it helps:

        Thanks man, that worked. But i’m even more confused.
        I know the file was in the folder I was referencing?
        Why could it not find it?