By: z3rb
Date: 2006-06-18
Time: 18:14
|
Strange error
I'm getting this Error:
Fatal error: Call to a member function LoadTemplate() on a non-object in C:\xampplite\htdocs\school\template\class\template_functions.php on line 19 |
From this code:
//====================================================
// STARTING TBS ENGINE
//====================================================
include_once('tbs_class.php');
$TBS = new clsTinyButStrong;
//====================================================
// ADMIN SECTION TEMPLATE FUNCTIONS
//====================================================
//Admin Header
function admin_header($title){
$TBS->LoadTemplate('./header.htm');
$page_title = $title;
$TBS->Show();
} |
When i try to do admin_header. I don't get it :s.
This si what's inside header.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>[var.page_title]</title>
<link rel="stylesheet" type="text/css" href="css/style.css" title="Default" />
<style type="text/css">
</style>
</head> |
|
By: Skrol29
Date: 2006-06-18
Time: 23:26
|
Re: Strange error
Hello,
This seems all normal for me. Your variable $TBS in the function is just an unset local variable when called as is.
|
|
Posting in progress.
Please wait...
|