what about this error??

From: Date: Sat, 29 Mar 2003 12:36:22 +0000
Subject: what about this error??
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3181@lists.php.net to get a copy of this message
I got my class: class textEditor{ var $_notebook; var $_files = array(); var $_filesOpened = 0; var $_tpl; function textEdditor($notebook){ $this->_notebook = $notebook; $this->_notebook->set_tab_pos(2); $this->_tpl = new template(); } function get_current_editor(){ } function add_page($file){ } function new_page($type){ global $XPM; $name = "Nuovo File".($this->_filesOpened+1)."* [".strtoupper($type)."]"; $label = new imagedLabel($XPM[strtoupper($type)], $name); $vBox = &new gtkVBox(false,0); $scintilla = &new GtkScintilla(); $scintilla->add_text($this->_tpl->load(strtoupper($type)));//here is the error $vBox->pack_start($scintilla,false,true,1); $vBox->show(); $this->_notebook->append_page($vBox,$label->get());//but also here $this->filesOpened++; $this->files[] = $name; } function close_page($num){ } function get_page_content($num){ } } it seems ok, but when I run the program, it givev me this error: fatal error: call to a member function on a non-object ... in line 35 (the signed line) why????

« previous php.gtk.general (#3181) next »