Jump to content
wtools

Fatal error: Uncaught Error: Class 'WHMCS\Module\Addon\AddonModule\Admin\AdminDispatcher' not foun

Recommended Posts

I was trying to do an addon, in the addon php file, i used AdminDispatcher class as

use WHMCS\Module\Addon\AddonModule\Admin\AdminDispatcher;

 

And then tried to call functions of that class. But getting an error like
Fatal error: Uncaught Error: Class 'WHMCS\Module\Addon\AddonModule\Admin\AdminDispatcher' not found

 

I was able to fix it by adding

require_once __DIR__ . '/lib/Admin/AdminDispatcher.php';

 

But this class file won't be auto loaded?  What settings have to do for the autoload?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines