Jump to content

Class function need help


Cardale

Recommended Posts

In my class I wanted to load files through my class so I could keep track of how many files are loaded, but I'm having some problems.

 

	function LOAD_FILE($root, $subdir, $file){
include($locate[$root].$locate[$subdir].$locate[$file]);
$this->counter++;
}

 

Everything works fine untill I try to include a file thats using a "object" from a class.  So the object can't be found or is not valid.

Link to comment
https://forums.phpfreaks.com/topic/86862-class-function-need-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.