Hi, I wanted to include/require a file in a class declaration, like this:
class new_class extends old class {
var $some_vars;
function new_class($some_param)
{
...
}
require_once $FOLDER. "file.inc";
...
}
and I got the next error:
Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION' or T_VAR' or'}'' in...
in the require line.
I've tried it with "require" and "include", and without $FOLDER (full path between "") but didn't work.
Can't I include a file in a class?
Thanx