Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    Perhaps show the code you are using in your autoloader - doing this from a namespace in a plugin is both possible and a good solution - this can be done by string matching the namespace and loading based on that. Commented Feb 12, 2021 at 22:16
  • @QStudio I'm trying this autoload file. Initially thought it would be relatively simple by using just spl_autoload_register(). I've also added namespace of class files. Commented Feb 13, 2021 at 13:17
  • Did you customize the code from the autoloader, of use it as is? Commented Feb 13, 2021 at 18:08
  • Not actually and it supposed to detect class files from plugin where we put it. I did tried custom code using spl_autoload_register() but I'm not getting any Namespace not sure how to debug that as well. Commented Feb 13, 2021 at 18:25