Jump to content

Class constructor problem


Recommended Posts

Seems that anytime I put anything in my class constructor except the call to the parent's constructor,
the class doesn't get loaded.

class ReportGenerator extends ObjectModel
 public $pdf_obj;
 public $debug_log;

 public function __construct() {
   $this->debug_log = Configuration::get('PS_LOG_DEBUG_TABLE');
 } // public function __construct()


Why would this be happening?

Could it be that Configuration class is not yet loaded??
Are the classes in classes directory loaded in alphabetical order or????

Link to comment
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
  • Create New...