Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
call to a member function string_tool() on a non-object in '<some file>' on line 85if($core->string_tool($_SESSION['user_id'],'ip')) return(1);class core {
function __construct() {
if(!include_once('file2.php')) echo "failed to load 'file2.php', must be a brain fart";
}
public function string_tool(<some vars>) {
echo 'woot';
}
}
$core = new core;class users {
function __construct() {
if(!include_once('file2.php')) echo "failed to load 'file2.php', must be a brain fart";
}
public function check_login() {
global $core;
if($core->string_tool($_SESSION['user_id'],'ip')) return(1); // this is line 85
}
}
$users = new users;
class newClass extends mainClass{
now you can use all of the objects from the mainClass in your newClass
}
class users extends core{
public function check_login() {
if($this->string_tool($_SESSION['user_id'],'ip')) return(1);
}
1 to 4 of 4