Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#ActualLojo

Posted 27 March 2012 - 12:22 AM

It has to do with the fact that you're using a namespace (removing the namespace would cause your code to immediately work). I don't know much about PHP namespaces (I spent the past two years doing PHP development and never once used them), but you should try constructing the string that points to the namespace. Instead of

$aClassName = QWConfiguration::getClassName();


you should try:

$aClassName = "\\quarkweb\\" . QWConfiguration::getClassName();


Let me know if that works.

#1Lojo

Posted 27 March 2012 - 12:21 AM

It has to do with the fact that you're using a namespace (removing the namespace would cause your code to immediately work). I don't know much about PHP namespaces (I spent the past two years doing PHP development and never once used them), but you should try constructing the string that points to the namespace. Instead of

$aClassName = QWConfiguration::getClassName();


you should try:

[php]$aClassName = "\\quarkweb\\" . QWConfiguration::getClassName();[php]

Let me know if that works.

PARTNERS