Hi all,
I could'nt include a file inside a class!! Suppose that we have the following class:
class FileClass
{
var $Interland = 55;
function any_method()
{
do_anything();
}
}
This works fine, while the following causes some errors:
class FileClass
{
include("any_file.php");
var $Interland = $a_variable_in_the_file_any_file;
function any_method()
{
do_anything();
}
}
Can anybody tells me why I get errors, and how can I use the file's variables inside my classes?
Thx.