Jump to content

How can I use a non-WHMCS library in the modules?


Recommended Posts

I want to use a library that I have hosted within the same module (/module/addons/errores/lib/nusoap). I have tried to include it using the require_once function, but it throws errors about not finding the class that I'm using from the library.

I use the function require_once dirname( dirname( DIR ) ) . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'nusoap' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'nusoap.php';

The file where I have my code is Controller.php with the path module/addons/errors/lib/Admin

Captura de pantalla 2024-03-06 a la(s) 12.39.24 p.m..png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated