Jump to content

Using namespaces in WHMCS


ArlindM

Recommended Posts

I'm working on building a custom module for connecting to the .mk registry through EPP. I'm making use of the code https://github.com/AfriCC/php-epp2. I modified it to fit the needs of the registry and it works great from the local computer. However, when I uploaded it online I have difficulties to use the namespace. The code I use is:

 

use AfriCC\EPP\Frame\Command\Check\Domain as CheckDomain;

 

I get an error that says cannot find the class:

 

exception 'Whoops\Exception\ErrorException' with message 'Class 'Domain' not found' in /home/luckyyhv/public_html/clients/includes/hooks/example.php:69

 

I've already uploaded all the code as a class in the includes/classes/AfriCC...

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