Hello All,
In my project I am using php calendar. I have used it locally it is working perfactly, but when I upload it on remote server it gives Fatal error: Call to a member function on a non-object in.......
in second last line of following code where it gives problem;
class structure is .
Kindly help in this regard,
Thx
In my project I am using php calendar. I have used it locally it is working perfactly, but when I upload it on remote server it gives Fatal error: Call to a member function on a non-object in.......
in second last line of following code where it gives problem;
Code:
function put_day($d, $font = 0, $color) {
$cur_time = mktime(0, 0, 0, $this->a_selected_date['m'], $d, $this->a_selected_date['y']);
$d = date('j', $cur_time);
$m = date('m', $cur_time);
$y = date('Y', $cur_time);
$combine = $y."-".$m."-".$d;
.....
........
.......
$ar = $this->events_class->short_item($d, $m, $y);
$cset = $this->events_class->get_cell_settings($d, $m, $y);
Code:
class calendar{
var $s_ImgDir; //an image folder absolute path
var $s_WebImgPath; //WEB path to the image folder (http://domain/calendar_files/img/)
var $s_FilesDir; //a main files folder absolute path
var $s_DataDir; //a data storage folder absolute path
var $db; //a variable for DB class
var $error; //a variable returns the error text message for previous calendar operation
var $is_admin; //is true if calendar is called from control panel
var $is_created; //is true if current calendar name is just created
var $a_template; //an array that contain templates information
var $a_look; //an array that contains looks information
var $a_localization; //an array that contains information about localization
var $a_redirect; //an array that contains information about link redirect
var $a_current_date; //an array that contains current date of the following structure
var $a_selected_date;//an array that contains selected date of the following structure
var $s_calendar_index; //a string that contains current calendar name
var $events_class;
}
Thx
Comment